StrIterMove
- Macro
- August 22, 2025
Table of Contents
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)
- In
JSON.c:252
:
LVAL(si.data + si.pos - 1)
);
StrIterMove(&si, 5);
break;
- In
JSON.c:476
:
const char* pos = StrIterPos(&si);
if (pos && ZstrCompareN(pos, "true", 4) == 0) {
StrIterMove(&si, 4);
*b = true;
return si;
- In
JSON.c:488
:
const char* pos = StrIterPos(&si);
if (pos && ZstrCompareN(pos, "false", 5) == 0) {
StrIterMove(&si, 5);
*b = false;
return si;
- In
JSON.c:526
:
const char* pos = StrIterPos(&si);
if (pos && ZstrCompareN(pos, "null", 4) == 0) {
StrIterMove(&si, 4);
*is_null = true;
return si;