예제 #1
0
void
RiscOperators::Cursor::init()
{
    skip_invalid();
    if (!at_end())
        ops_->before(idx_);
}
예제 #2
0
void
RiscOperators::Cursor::next()
{
    ops_->after(idx_);
    ++idx_;
    skip_invalid();
    if (!at_end())
        ops_->before(idx_);
}
예제 #3
0
파일: charset.c 프로젝트: 0x27/mrw-code
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;
}