String view followed by optional source coordinates. More...
#include <jsonbourne.h>

Data Fields | |
| struct jsonbourne_str | str |
| size_t | pos |
| size_t | line |
| size_t | col |
Detailed Description
String view followed by optional source coordinates.
- Precondition
- Only cast a parsed string/key to this type when TRACK_LOCATION was enabled.
Keeping the base first preserves ordinary string access while making location storage opt-in rather than charging every node for coordinates.
Definition at line 200 of file jsonbourne.h.
Field Documentation
◆ col
| size_t jsonbourne_str_loc::col |
Zero-based byte column, not a Unicode character count.
Definition at line 204 of file jsonbourne.h.
◆ line
| size_t jsonbourne_str_loc::line |
One-based line number; LF advances the line.
Definition at line 203 of file jsonbourne.h.
◆ pos
| size_t jsonbourne_str_loc::pos |
Zero-based source byte offset.
Definition at line 202 of file jsonbourne.h.
◆ str
| struct jsonbourne_str jsonbourne_str_loc::str |
Base view; must remain the first member.
Definition at line 201 of file jsonbourne.h.
The documentation for this struct was generated from the following file:
- src/jsonbourne.h