Lines Matching refs:Pointer

1 # Pointer  chapter
5Pointer is a standardized ([RFC6901]) way to select a value inside a JSON Document (DOM). This can…
7 Using RapidJSON's implementation of JSON Pointer can simplify some manipulations of the DOM.
11 # JSON Pointer {#JsonPointer}
13 A JSON Pointer is a list of zero-to-many tokens, each prefixed by `/`. Each token can be a string o…
28 Note that, an empty JSON Pointer `""` (zero token) resolves to the whole JSON.
41 Pointer("/project").Set(d, "RapidJSON");
42 Pointer("/stars").Set(d, 10);
47 if (Value* stars = Pointer("/stars").Get(d))
53 Pointer("/a/b/0").Create(d);
58 Value& hello = Pointer("/hello").GetWithDefault(d, "world");
64 Pointer("/hello").Swap(d, x);
70 bool success = Pointer("/a").Erase(d);
104 1. `Pointer(source).<Method>(root, ...)`
105 2. `<Method>ValueByPointer(root, Pointer(source), ...)`
108 # Resolving Pointer {#ResolvingPointer}
110 `Pointer::Get()` or `GetValueByPointer()` function does not modify the DOM. If the tokens cannot ma…
182 A `Pointer` parses a source string in its constructor. If there is parsing error, `Pointer::IsValid…
192 String Representation | URI Fragment Representation | Pointer Tokens (UTF-8)
205 You may also stringify a `Pointer` to a string or other output streams. This can be done by:
208 Pointer p(...);
218 … different times. This reduce time and memory allocation for constructing `Pointer` multiple times.
226 static const Pointer::Token kTokens[] = { NAME("foo"), INDEX(123) };
227 static const Pointer p(kTokens, sizeof(kTokens) / sizeof(kTokens[0]));
228 // Equivalent to static const Pointer p("/foo/123");