Skip to content

StrIterMove

StrIterMove

Description

Move string iterator position by n elements

Parameters

Name Direction Description
si in,out StrIter to modify
n in Number of elements to move

Success

Updates position if within bounds

Failure

No change for invalid moves

Usage example (Cross-references)

Usage examples (Cross-references)
                                    LVAL(si.data + si.pos - 1)
                                );
                                StrIterMove(&si, 5);
                                break;
                const char *pos = StrIterPos(&si);
                if (pos && ZstrCompareN(pos, "true", 4) == 0) {
                    StrIterMove(&si, 4);
                    *b = true;
                    return si;
                    const char *pos = StrIterPos(&si);
                    if (pos && ZstrCompareN(pos, "false", 5) == 0) {
                        StrIterMove(&si, 5);
                        *b = false;
                        return si;
                const char *pos = StrIterPos(&si);
                if (pos && ZstrCompareN(pos, "null", 4) == 0) {
                    StrIterMove(&si, 4);
                    *is_null = true;
                    return si;
Last updated on