void
RiscOperators::Cursor::init()
{
    skip_invalid();
    if (!at_end())
        ops_->before(idx_);
}
void
RiscOperators::Cursor::next()
{
    ops_->after(idx_);
    ++idx_;
    skip_invalid();
    if (!at_end())
        ops_->before(idx_);
}
Exemple #3
0
static int
charset_set(const char *to, const char *from)
{
	char *allocated;
	int ret;

	if (ignore_invalid)
		to = allocated = skip_invalid(to);
	else
		allocated = NULL;

	ret = charset_set2(to, from);

	if (allocated != NULL)
		free(allocated);

	return ret;
}