Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
string_r Struct Reference

This is the "relative" string developed during parsing. More...

#include <jsonp.h>

Data Fields

aint uiCharsOffset
 The offset from the vector base of 32-bit character codes to the first character in the string. More...
 
aint uiLength
 The number of characters in the string. More...
 

Detailed Description

This is the "relative" string developed during parsing.

Because parsed strings are pushed on vectors, the base of the vector may change with any push. Therefore, we must keep only relative indexes to the relevant items. During post-parse processing these relative indexes will be converted to absolute pointers. See json_value_tag.

Definition at line 55 of file jsonp.h.

Field Documentation

◆ uiCharsOffset

aint string_r::uiCharsOffset

The offset from the vector base of 32-bit character codes to the first character in the string.

Definition at line 56 of file jsonp.h.

◆ uiLength

aint string_r::uiLength

The number of characters in the string.

Definition at line 57 of file jsonp.h.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.