mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Add some section breaks to auxiliary/json.cc
This commit is contained in:
1 parent
b3438434ca
commit
b21a82bbcd
3 files changed
+42
-21
No files matched your search
@@ -29386,6 +29386,8 @@ const char DecodeJson_BadJsonPointer[] =
|
||||
"wuffs_aux::DecodeJson: bad JSON Pointer";
|
||||
const char DecodeJson_NoMatch[] = "wuffs_aux::DecodeJson: no match";
|
||||
|
||||
// --------
|
||||
|
||||
#define WUFFS_AUX__DECODE_JSON__GET_THE_NEXT_TOKEN \
|
||||
while (tok_buf.meta.ri >= tok_buf.meta.wi) { \
|
||||
if (tok_status.repr == nullptr) { \
|
||||
@@ -29435,6 +29437,8 @@ const char DecodeJson_NoMatch[] = "wuffs_aux::DecodeJson: no match";
|
||||
uint8_t* token_ptr = io_buf->data.ptr + cursor_index; \
|
||||
cursor_index += token_len
|
||||
|
||||
// --------
|
||||
|
||||
namespace {
|
||||
|
||||
// DecodeJson_SplitJsonPointer returns ("bar", 8) for ("/foo/bar/b~1z/qux", 5,
|
||||
@@ -29511,6 +29515,8 @@ DecodeJson_DecodeBackslashX(std::string& str,
|
||||
return "";
|
||||
}
|
||||
|
||||
// --------
|
||||
|
||||
std::string //
|
||||
DecodeJson_WalkJsonPointerFragment(wuffs_base__token_buffer& tok_buf,
|
||||
wuffs_base__status& tok_status,
|
||||
@@ -29701,6 +29707,8 @@ done:
|
||||
|
||||
} // namespace
|
||||
|
||||
// --------
|
||||
|
||||
DecodeJsonResult //
|
||||
DecodeJson(DecodeJsonCallbacks&& callbacks,
|
||||
sync_io::Input&& input,
|
||||
|
||||
Reference in new issue
Block a user