StrIterMove

Table of Contents

StrIterMove

Description

Move string iterator position by n elements

Parameters

NameDirectionDescription
siin,outStrIter to modify
ninNumber of elements to move

Success

Updates position if within bounds

Failure

No change for invalid moves

Usage example (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;

Share :