diff --git a/array__iterator_8h_source.html b/array__iterator_8h_source.html index f735be7c2..e91d65094 100644 --- a/array__iterator_8h_source.html +++ b/array__iterator_8h_source.html @@ -157,7 +157,7 @@ $(document).ready(function(){initNavTree('array__iterator_8h_source.html',''); i
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:17
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:28
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iterator >
Definition: array_iterator.h:74
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:573
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:588
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:205
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:132
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation-members.html index b3f15c077..76192129c 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation-members.html @@ -105,12 +105,13 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ operator=(dom_parser_implementation &&other) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementationinline operator=(const dom_parser_implementation &)=delete (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation parse(const uint8_t *buf, size_t len, dom::document &doc) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation - parse_string(const uint8_t *src, uint8_t *dst) const noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation - set_capacity(size_t capacity) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementationinline - set_max_depth(size_t max_depth) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementationinline - stage1(const uint8_t *buf, size_t len, stage1_mode partial) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation - stage2(dom::document &doc) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation - stage2_next(dom::document &doc) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation + parse_string(const uint8_t *src, uint8_t *dst, bool allow_replacement) const noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation + parse_wobbly_string(const uint8_t *src, uint8_t *dst) const noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation + set_capacity(size_t capacity) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementationinline + set_max_depth(size_t max_depth) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementationinline + stage1(const uint8_t *buf, size_t len, stage1_mode partial) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation + stage2(dom::document &doc) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation + stage2_next(dom::document &doc) noexcept final (defined in simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation)simdjson::SIMDJSON_IMPLEMENTATION::dom_parser_implementation diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html index 0a568cfb0..392d6c57f 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html @@ -128,9 +128,12 @@ simdjson_warn_unused simdjson_warn_unused error_code stage2_next (dom::document &doc) noexcept final   - -simdjson_warn_unused uint8_t * parse_string (const uint8_t *src, uint8_t *dst) const noexcept final -  + +simdjson_warn_unused uint8_t * parse_string (const uint8_t *src, uint8_t *dst, bool allow_replacement) const noexcept final +  + +simdjson_warn_unused uint8_t * parse_wobbly_string (const uint8_t *src, uint8_t *dst) const noexcept final +  simdjson_warn_unused error_code set_capacity (size_t capacity) noexcept final   diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.js index 16bf00194..a1b670b14 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.js @@ -6,7 +6,8 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__pars [ "operator=", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a0ed9fe2a61acbdeb9b7a337e362dda2b", null ], [ "operator=", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a4bdd98e83c105a18882ede9cd7cd0525", null ], [ "parse", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a2667a623246d69262e685124020fcbb1", null ], - [ "parse_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#aecfcdd437419319dcee518adab3a8d15", null ], + [ "parse_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a9f2b05e0da9c654808f3f699b4146ee9", null ], + [ "parse_wobbly_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a958d7f2d6a9d6dc8fb30405cb3456b25", null ], [ "set_capacity", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a228ebe3ee63b409a21949f27a0db034e", null ], [ "set_max_depth", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#a63068d5e284fab7c458727a1f2c074c7", null ], [ "stage1", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1dom__parser__implementation.html#af4e2f7842cf7307636ac00b3dbb188d0", null ], diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document-members.html index a857dcee4..2f92410d7 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document-members.html @@ -131,38 +131,39 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ get_object() &noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document get_raw_json_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document get_root_value_iterator() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected - get_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + get_string(bool allow_replacement=false) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document get_uint64() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document get_uint64_in_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document get_value() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - is_alive() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline - is_integer() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - is_negative() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - is_null() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - is_scalar() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - itersimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected - operator array() &noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator bool() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator double() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator int64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator object() &noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator raw_json_string() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator std::string_view() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator uint64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator value() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator=(const document &other) noexcept=delete (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator=(document &&other) noexcept=default (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator[](std::string_view key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - operator[](const char *key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - raw_json() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - raw_json_token() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document - resume_value_iterator() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected - rewind() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline - start(ondemand::json_iterator &&iter) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotectedstatic - start_or_resume_object() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected - text(uint32_t idx) const noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected - to_debug_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline - type() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + get_wobbly_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + is_alive() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline + is_integer() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + is_negative() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + is_null() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + is_scalar() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + itersimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected + operator array() &noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator bool() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator double() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator int64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator object() &noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator raw_json_string() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator std::string_view() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator uint64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator value() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator=(const document &other) noexcept=delete (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator=(document &&other) noexcept=default (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator[](std::string_view key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + operator[](const char *key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + raw_json() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + raw_json_token() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document + resume_value_iterator() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected + rewind() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline + start(ondemand::json_iterator &&iter) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotectedstatic + start_or_resume_object() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected + text(uint32_t idx) const noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentprotected + to_debug_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::documentinline + type() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html index 792180aeb..2ad6edd0f 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html @@ -143,9 +143,12 @@ simdjson_inline simdjson_inline simdjson_result< double > get_double_in_string () noexcept  Cast this JSON value (inside string) to a double. More...
  -simdjson_inline simdjson_result< std::string_view > get_string () noexcept - Cast this JSON value to a string. More...
-  +simdjson_inline simdjson_result< std::string_view > get_string (bool allow_replacement=false) noexcept + Cast this JSON value to a string. More...
+  +simdjson_inline simdjson_result< std::string_view > get_wobbly_string () noexcept + Cast this JSON value to a string. More...
+  simdjson_inline simdjson_result< raw_json_stringget_raw_json_string () noexcept  Cast this JSON value to a raw_json_string. More...
  @@ -405,7 +408,7 @@ static constexpr Definition at line 161 of file document-inl.h.

+

Definition at line 164 of file document-inl.h.

@@ -449,7 +452,7 @@ static constexpr Definition at line 242 of file document-inl.h.

+

Definition at line 245 of file document-inl.h.

@@ -479,7 +482,7 @@ static constexpr Definition at line 165 of file document-inl.h.

+

Definition at line 168 of file document-inl.h.

@@ -509,7 +512,7 @@ static constexpr Definition at line 147 of file document-inl.h.

+

Definition at line 150 of file document-inl.h.

@@ -540,7 +543,7 @@ static constexpr Definition at line 154 of file document-inl.h.

+

Definition at line 157 of file document-inl.h.

@@ -600,7 +603,7 @@ static constexpr Definition at line 168 of file document-inl.h.

+

Definition at line 171 of file document-inl.h.

@@ -647,7 +650,7 @@ static constexpr
Returns
The value of the field, or NO_SUCH_FIELD if the field is not in the object.
-

Definition at line 172 of file document-inl.h.

+

Definition at line 175 of file document-inl.h.

@@ -689,7 +692,7 @@ static constexpr
Returns
The value of the field, or NO_SUCH_FIELD if the field is not in the object.
-

Definition at line 178 of file document-inl.h.

+

Definition at line 181 of file document-inl.h.

@@ -720,12 +723,12 @@ template<typename T >

Get this value as the given type.

Supported types: object, array, raw_json_string, string_view, uint64_t, int64_t, double, bool

-

You may use get_double(), get_bool(), get_uint64(), get_int64(), get_object(), get_array(), get_raw_json_string(), or get_string() instead.

+

You may use get_double(), get_bool(), get_uint64(), get_int64(), get_object(), get_array(), get_raw_json_string(), or get_string() instead.

Returns
A value of the given type, parsed from the JSON.
INCORRECT_TYPE If the JSON value is not the given type.
-

Definition at line 149 of file document.h.

+

Definition at line 162 of file document.h.

@@ -830,7 +833,7 @@ INCORRECT_TYPE If the JSON value is not an array.
INCORRECT_TYPE if the JSON value is not true or false.
-

Definition at line 103 of file document-inl.h.

+

Definition at line 106 of file document-inl.h.

@@ -992,7 +995,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

Otherwise, number.get_number_type() has value number_type::floating_point_number and we have a binary64 number. You can recover the value by calling number.get_double() and you have that number.is_double() is true.

You must check the type before accessing the value: it is an error to call "get_int64()" when number.get_number_type() is not number_type::signed_integer and when number.is_int64() is false.

-

Definition at line 232 of file document-inl.h.

+

Definition at line 235 of file document-inl.h.

@@ -1026,7 +1029,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

This function requires processing the number string, but it is expected to be faster than get_number().get_number_type() because it is does not parse the number value.

Returns
the type of the number
-

Definition at line 228 of file document-inl.h.

+

Definition at line 231 of file document-inl.h.

@@ -1092,12 +1095,12 @@ INCORRECT_TYPE If the JSON value is not an object.
INCORRECT_TYPE if the JSON value is not a string.
-

Definition at line 100 of file document-inl.h.

+

Definition at line 103 of file document-inl.h.

- -

◆ get_string()

+ +

◆ get_string()

@@ -1108,7 +1111,8 @@ INCORRECT_TYPE if the JSON value is not a string. simdjson_inline simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_string ( - ) + bool  + allow_replacement = false) @@ -1121,7 +1125,13 @@ INCORRECT_TYPE if the JSON value is not a string.

Cast this JSON value to a string.

The string is guaranteed to be valid UTF-8.

-

Important: Calling get_string() twice on the same document is an error.

+

Important: Calling get_string() twice on the same document is an error.

+
Parameters
+ + +
Whetherto allow a replacement character for unmatched surrogate pairs.
+
+
Returns
An UTF-8 string. The string is stored in the parser and will be invalidated the next time it parses a document or when it is destroyed.
INCORRECT_TYPE if the JSON value is not a string.
@@ -1226,6 +1236,40 @@ SCALAR_DOCUMENT_AS_VALUE error is the document is a scalar (see Definition at line 47 of file document-inl.h.

+
+
+ +

◆ get_wobbly_string()

+ +
+
+ + + + + +
+ + + + + + + +
simdjson_inline simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_wobbly_string ()
+
+noexcept
+
+ +

Cast this JSON value to a string.

+

The string is not guaranteed to be valid UTF-8. See https://simonsapin.github.io/wtf-8/

+

Important: Calling get_wobbly_string() twice on the same document is an error.

+
Returns
An UTF-8 string. The string is stored in the parser and will be invalidated the next time it parses a document or when it is destroyed.
+
+INCORRECT_TYPE if the JSON value is not a string.
+ +

Definition at line 100 of file document-inl.h.

+
@@ -1285,7 +1329,7 @@ SCALAR_DOCUMENT_AS_VALUE error is the document is a scalar (see Note that this requires to partially parse the number string. If the value is determined to be an integer, it may still not parse properly as an integer in subsequent steps (e.g., it might overflow).

Returns
true if the number if negative.
-

Definition at line 224 of file document-inl.h.

+

Definition at line 227 of file document-inl.h.

@@ -1315,7 +1359,7 @@ SCALAR_DOCUMENT_AS_VALUE error is the document is a scalar (see Checks whether the document is a negative number.

Returns
true if the number if negative.
-

Definition at line 220 of file document-inl.h.

+

Definition at line 223 of file document-inl.h.

@@ -1348,7 +1392,7 @@ SCALAR_DOCUMENT_AS_VALUE error is the document is a scalar (see INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 106 of file document-inl.h.

+

Definition at line 109 of file document-inl.h.

@@ -1379,7 +1423,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.

Returns false when there it is an array or object.

Returns
true if the type is string, number, null, Boolean @error TAPE_ERROR when the JSON value is a bad token like "}" "," or "alse".
-

Definition at line 213 of file document-inl.h.

+

Definition at line 216 of file document-inl.h.

@@ -1415,7 +1459,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 136 of file document-inl.h.

+

Definition at line 139 of file document-inl.h.

@@ -1451,7 +1495,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 143 of file document-inl.h.

+

Definition at line 146 of file document-inl.h.

@@ -1487,7 +1531,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 140 of file document-inl.h.

+

Definition at line 143 of file document-inl.h.

@@ -1523,7 +1567,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 139 of file document-inl.h.

+

Definition at line 142 of file document-inl.h.

@@ -1559,7 +1603,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 137 of file document-inl.h.

+

Definition at line 140 of file document-inl.h.

@@ -1597,7 +1641,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 142 of file document-inl.h.

+

Definition at line 145 of file document-inl.h.

@@ -1634,7 +1678,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 141 of file document-inl.h.

+

Definition at line 144 of file document-inl.h.

@@ -1670,7 +1714,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 138 of file document-inl.h.

+

Definition at line 141 of file document-inl.h.

@@ -1706,7 +1750,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

Definition at line 144 of file document-inl.h.

+

Definition at line 147 of file document-inl.h.

@@ -1736,7 +1780,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.

Consumes the document and returns a string_view instance corresponding to the document as represented in JSON.

It points inside the original byte array containing the JSON document.

-

Definition at line 197 of file document-inl.h.

+

Definition at line 200 of file document-inl.h.

@@ -1777,7 +1821,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.
  • null
  • -

    Definition at line 237 of file document-inl.h.

    +

    Definition at line 240 of file document-inl.h.

    @@ -1839,7 +1883,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.

    NOTE: If you're only expecting a value to be one type (a typical case), it's generally better to just call .get_double, .get_string, etc. and check for INCORRECT_TYPE (or just let it throw an exception).

    @error TAPE_ERROR when the JSON value is a bad token like "}" "," or "alse".

    -

    Definition at line 209 of file document-inl.h.

    +

    Definition at line 212 of file document-inl.h.

    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.js index 7c1edf5ec..284520e93 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.js @@ -36,10 +36,11 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_ [ "get_object", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a4620d364a637031ef38661f9fb215ebc", null ], [ "get_raw_json_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#afa3370b930da937911cf61ec9b047c56", null ], [ "get_root_value_iterator", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#ac8cfa8a237aa1297ecdff4bd1b02a7c1", null ], - [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#addfd2bc654d13906456ce44168d2ab68", null ], + [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a2ae4c160def21463b0ab214a36c0a78e", null ], [ "get_uint64", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a4d221850d045f1e7ada4dfaaee0e145c", null ], [ "get_uint64_in_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a5cb63d14a99509d751f4be45063fec95", null ], [ "get_value", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#ab89eda435b4a68be578fcb5c3da73980", null ], + [ "get_wobbly_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#ae1db0154ef901ed1e8fb581bb9df6899", null ], [ "is_alive", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a3170300bc331577a1435bb238cf3faff", null ], [ "is_integer", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#af47e11e9925fd5d3d8a43cf0f7773992", null ], [ "is_negative", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html#a5083f65b71d7540ea785ec2b52604267", null ], diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference-members.html index ba56b8d74..0d11dbd6b 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference-members.html @@ -119,31 +119,32 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ get_number_type() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference get_object() &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference get_raw_json_string() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - get_string() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + get_string(bool allow_replacement=false) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference get_uint64() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference get_uint64_in_string() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference get_value() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - is_integer() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - is_negative() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - is_null() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - is_scalar() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator array() &noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator bool() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator document &() const noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator double() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator int64_t() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator object() &noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator raw_json_string() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator std::string_view() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator uint64_t() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator value() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator=(const document_reference &other) noexcept=default (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator[](std::string_view key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - operator[](const char *key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - raw_json() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - raw_json_token() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - rewind() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference - type() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + get_wobbly_string() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + is_integer() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + is_negative() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + is_null() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + is_scalar() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator array() &noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator bool() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator document &() const noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator double() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator int64_t() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator object() &noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator raw_json_string() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator std::string_view() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator uint64_t() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator value() noexcept(false) (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator=(const document_reference &other) noexcept=default (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator[](std::string_view key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + operator[](const char *key) &noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + raw_json() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + raw_json_token() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + rewind() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference + type() noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html index c7fb760a3..876b55e73 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html @@ -136,9 +136,12 @@ simdjson_inline sim simdjson_inline simdjson_result< double > get_double_in_string () noexcept   - -simdjson_inline simdjson_result< std::string_view > get_string () noexcept -  + +simdjson_inline simdjson_result< std::string_view > get_string (bool allow_replacement=false) noexcept +  + +simdjson_inline simdjson_result< std::string_view > get_wobbly_string () noexcept +  simdjson_inline simdjson_result< raw_json_stringget_raw_json_string () noexcept   @@ -251,7 +254,7 @@ simdjson_inline sim

    Detailed Description

    A document_reference is a thin wrapper around a document reference instance.

    -

    Definition at line 587 of file document.h.

    +

    Definition at line 600 of file document.h.

    Member Function Documentation

    ◆ get_uint64()

    @@ -281,7 +284,7 @@ simdjson_inline sim

    However, for streams of JSON documents, we want to be able to start from "321" "321" "321" and parse it successfully as a stream of JSON documents, calling get_uint64_in_string() successfully each time.

    To achieve this result, we pass a 'false' to a get_root_value_iterator() method: this indicates that we allow trailing content.

    -

    Definition at line 535 of file document-inl.h.

    +

    Definition at line 542 of file document-inl.h.

    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.js index 777ab59e2..b0fae2e4e 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.js @@ -25,10 +25,11 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_ [ "get_number_type", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#ab0058006c986910b2bb2c49cd6a420e5", null ], [ "get_object", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a8b5aa3ba538a00b6994e08c73aa3cd7b", null ], [ "get_raw_json_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a90173c5537066e30269ad866bf405f9e", null ], - [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a9090f793b7825131d0ee091e42c5dfd4", null ], + [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a58f51ea5631d725ba220d8a0038fabb3", null ], [ "get_uint64", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a47b30548f71aca4317bdc4c6955cd719", null ], [ "get_uint64_in_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#ade1e70006d43416bb0322c409947e57d", null ], [ "get_value", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a70388310dda561543af00fda3686fdf8", null ], + [ "get_wobbly_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#ace95574ee1e4b4fe00baff0b63cc422e", null ], [ "is_integer", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#a7bfebc3db33cd306ce47e0914e45f311", null ], [ "is_negative", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#ac735941fc906d1eaf1c825bf715eda2f", null ], [ "is_null", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html#af737df31cc6466027676bdf70b60542d", null ], diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field-members.html index 96416c500..6b5a8c0d9 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field-members.html @@ -99,7 +99,7 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ key() const noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::field start(value_iterator &parent_iter) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::fieldprotectedstatic start(const value_iterator &parent_iter, raw_json_string key) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::fieldprotectedstatic - unescaped_key() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::field + unescaped_key(bool allow_replacement) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::field value() &noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::field value() &&noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html index f27e8b6b6..68e419c19 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html @@ -111,9 +111,9 @@ Public Member Functions simdjson_inline field () noexcept  Create a new invalid field. More...
      -simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key () noexcept - Get the key as a string_view (for higher speed, consider raw_key). More...
    -  +simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key (bool allow_replacement) noexcept + Get the key as a string_view (for higher speed, consider raw_key). More...
    +  simdjson_inline raw_json_string key () const noexcept  Get the key as a raw_json_string. More...
      @@ -208,8 +208,8 @@ static simdjson_inline -

    ◆ unescaped_key()

    + +

    ◆ unescaped_key()

    @@ -220,7 +220,8 @@ static simdjson_inline simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field::unescaped_key ( - ) + bool  + allow_replacement) @@ -233,7 +234,7 @@ static simdjson_inline unescaped_key(), you cannot call it again nor can you call key().

    +

    This consumes the key: once you have called unescaped_key(), you cannot call it again nor can you call key().

    Definition at line 24 of file field-inl.h.

    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.js index b4113dfe9..c914639f5 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.js @@ -3,7 +3,7 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_ [ "field", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a9415aecf3526ad6081be495c9be61b43", null ], [ "field", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a7d565f0d79dec8bf19c307e464452650", null ], [ "key", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a4f49d8e89feb3ca69cf85ce2aea80c0f", null ], - [ "unescaped_key", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a49425afaaf0874b07c1f8e4ed1d86cf0", null ], + [ "unescaped_key", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a8e655ba1a0fd26809821f77aac355b7c", null ], [ "value", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a73a389f50a576d2a5eb315dbd8abced7", null ], [ "value", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#ad5f688629f86f80dff49cab2270b1967", null ], [ "object_iterator", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1field.html#a56fd10d90f6366433ca435a221830af7", null ], diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser-members.html index 8db5986ba..af1e0fc52 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser-members.html @@ -118,8 +118,9 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ parser(parser &&other) noexcept=default (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parserinline parser(const parser &other)=delete (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser set_max_capacity(size_t max_capacity) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser - unescape(raw_json_string in, uint8_t *&dst) const noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser - ~parser() noexcept=defaultsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::parserinline + unescape(raw_json_string in, uint8_t *&dst, bool allow_replacement=false) const noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser + unescape_wobbly(raw_json_string in, uint8_t *&dst) const noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser + ~parser() noexcept=defaultsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::parserinline
    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html index 1a4b237fc..40f092c11 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html @@ -178,10 +178,14 @@ simdjson_inline void set_m simdjson_warn_unused error_code allocate (size_t capacity, size_t max_depth=DEFAULT_MAX_DEPTH) noexcept  Ensure this parser has enough memory to process JSON documents up to capacity bytes in length and max_depth depth. More...
      -simdjson_inline simdjson_result< std::string_view > unescape (raw_json_string in, uint8_t *&dst) const noexcept - Unescape this JSON string, replacing \ with \,
    - with newline, etc. More...
    -  +simdjson_inline simdjson_result< std::string_view > unescape (raw_json_string in, uint8_t *&dst, bool allow_replacement=false) const noexcept + Unescape this JSON string, replacing \ with \,
    + with newline, etc. More...
    +  +simdjson_inline simdjson_result< std::string_view > unescape_wobbly (raw_json_string in, uint8_t *&dst) const noexcept + Unescape this JSON string, replacing \ with \,
    + with newline, etc. More...

    Detailed Description

    A JSON fragment iterator.

    @@ -440,8 +444,8 @@ Parser Capacity
    - -

    ◆ unescape()

    + +

    ◆ unescape()

    @@ -455,6 +459,67 @@ Parser Capacity raw_json_string  in, + + + + uint8_t *&  + dst, + + + + + bool  + allow_replacement = false  + + + + ) + const + + + + +noexcept + + +
    + +

    Unescape this JSON string, replacing \ with \,
    + with newline, etc.

    +

    to a user-provided buffer. The result must be valid UTF-8. The provided pointer is advanced to the end of the string by reference, and a string_view instance is returned. You can ensure that your buffer is large enough by allocating a block of memory at least as large as the input JSON plus SIMDJSON_PADDING and then unescape all strings to this one buffer.

    +

    This unescape function is a low-level function. If you want a more user-friendly approach, you should avoid raw_json_string instances (e.g., by calling unescaped_key() instead of key() or get_string() instead of get_raw_json_string()).

    +

    +IMPORTANT: string_view lifetime

    +

    The string_view is only valid as long as the bytes in dst.

    +
    Parameters
    + + + + +
    raw_json_stringinput
    dstA pointer to a buffer at least large enough to write this string as well as an additional SIMDJSON_PADDING bytes.
    allow_replacementWhether we allow a replacement if the input string contains unmatched surrogate pairs.
    +
    +
    +
    Returns
    A string_view pointing at the unescaped string in dst @error STRING_ERROR if escapes are incorrect.
    + +

    Definition at line 119 of file parser-inl.h.

    + +
    +
    + +

    ◆ unescape_wobbly()

    + +
    +
    + + + - - - + + + + + + @@ -340,7 +343,7 @@ value_iterator  - + +
    + + + + + + + @@ -476,9 +541,9 @@ Parser Capacity

    Unescape this JSON string, replacing \ with \,
    with newline, etc.

    -

    to a user-provided buffer. The provided pointer is advanced to the end of the string by reference, and a string_view instance is returned. You can ensure that your buffer is large enough by allocating a block of memory at least as large as the input JSON plus SIMDJSON_PADDING and then unescape all strings to this one buffer.

    +

    to a user-provided buffer. The result may not be valid UTF-8. See https://simonsapin.github.io/wtf-8/ The provided pointer is advanced to the end of the string by reference, and a string_view instance is returned. You can ensure that your buffer is large enough by allocating a block of memory at least as large as the input JSON plus SIMDJSON_PADDING and then unescape all strings to this one buffer.

    This unescape function is a low-level function. If you want a more user-friendly approach, you should avoid raw_json_string instances (e.g., by calling unescaped_key() instead of key() or get_string() instead of get_raw_json_string()).

    -

    +

    IMPORTANT: string_view lifetime

    The string_view is only valid as long as the bytes in dst.

    Parameters
    @@ -490,7 +555,7 @@ IMPORTANT: string_view lifetime
    Returns
    A string_view pointing at the unescaped string in dst @error STRING_ERROR if escapes are incorrect.
    -

    Definition at line 119 of file parser-inl.h.

    +

    Definition at line 127 of file parser-inl.h.

    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.js index 55cc1a2ed..b6536bf1c 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.js @@ -25,7 +25,8 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_ [ "operator=", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a615e14840aadad3ddb703d40140e6a46", null ], [ "operator=", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a1df3e757ec1e2206da217b3165fcbded", null ], [ "set_max_capacity", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a1fea49ba6513317ea94d87926b6f085d", null ], - [ "unescape", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#ac69b3aef12e3490c9fbd0a580004e015", null ], + [ "unescape", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a27714b0095b036a169cabebdc1031937", null ], + [ "unescape_wobbly", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a926e145e3ffb2b1024646dd56bc938e4", null ], [ "document_stream", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a403473bb5329fca6defc6299fb45b780", null ], [ "json_iterator", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser.html#a7a0d2e5fad4f195a866b6baa15846d39", null ] ]; \ No newline at end of file diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value-members.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value-members.html index bda03078d..561850d86 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value-members.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value-members.html @@ -119,32 +119,33 @@ $(document).ready(function(){initNavTree('classsimdjson_1_1_s_i_m_d_j_s_o_n___i_ - + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + +
    simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser::unescape_wobbly (raw_json_string in,
    get_number_type() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_object() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_raw_json_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_string(bool allow_replacement=false) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_uint64() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    get_uint64_in_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_integer() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_negative() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_null() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_scalar() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    iter (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    operator array() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator bool() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator double() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator int64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator object() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator raw_json_string() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator std::string_view() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator uint64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator[](std::string_view key) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator[](const char *key) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    raw_json_token() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    resume(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotectedstatic
    skip() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    start(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotectedstatic
    start_or_resume_object() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    type() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    value() noexcept=defaultsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    value(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    get_wobbly_string() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_integer() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_negative() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_null() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    is_scalar() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    iter (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    operator array() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator bool() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator double() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator int64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator object() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator raw_json_string() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator std::string_view() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator uint64_t() noexcept(false)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator[](std::string_view key) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    operator[](const char *key) noexcept (defined in simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value)simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    raw_json_token() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    resume(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotectedstatic
    skip() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    start(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotectedstatic
    start_or_resume_object() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    type() noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    value() noexcept=defaultsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
    value(const value_iterator &iter) noexceptsimdjson::SIMDJSON_IMPLEMENTATION::ondemand::valueprotected
    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html index 3cf2d07ca..a8c0816f3 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html @@ -138,9 +138,12 @@ Public Member Functions
    simdjson_inline simdjson_result< double > get_double_in_string () noexcept
     Cast this JSON value (inside string) to a double. More...
     
    simdjson_inline simdjson_result< std::string_view > get_string () noexcept
     Cast this JSON value to a string. More...
     
    simdjson_inline simdjson_result< std::string_view > get_string (bool allow_replacement=false) noexcept
     Cast this JSON value to a string. More...
     
    simdjson_inline simdjson_result< std::string_view > get_wobbly_string () noexcept
     Cast this JSON value to a "wobbly" string. More...
     
    simdjson_inline simdjson_result< raw_json_stringget_raw_json_string () noexcept
     Cast this JSON value to a raw_json_string. More...
     
    iter {} -

    Definition at line 124 of file value-inl.h.

    +

    Definition at line 127 of file value-inl.h.

    @@ -386,7 +389,7 @@ value_iterator 
    iter {} -

    Definition at line 187 of file value-inl.h.

    +

    Definition at line 190 of file value-inl.h.

    @@ -417,7 +420,7 @@ value_iterator 
    iter {}

    Part of the std::iterable interface.

    Returns
    INCORRECT_TYPE If the JSON value is not an array.
    -

    Definition at line 101 of file value-inl.h.

    +

    Definition at line 104 of file value-inl.h.

    @@ -448,7 +451,7 @@ value_iterator 
    iter {}

    The count_elements method should always be called before you have begun iterating through the array: it is expected that you are pointing at the beginning of the array. The runtime complexity is linear in the size of the array. After calling this function, if successful, the array is 'rewinded' at its beginning as if it had never been accessed. If the JSON is malformed (e.g., there is a missing comma), then an error is returned and it is no longer safe to continue.

    Performance hint: You should only call count_elements() as a last resort as it may require scanning the document twice or more.

    -

    Definition at line 107 of file value-inl.h.

    +

    Definition at line 110 of file value-inl.h.

    @@ -480,7 +483,7 @@ value_iterator 
    iter {}

    To check that an object is empty, it is more performant to use the is_empty() method on the object instance.

    Performance hint: You should only call count_fields() as a last resort as it may require scanning the document twice or more.

    -

    Definition at line 117 of file value-inl.h.

    +

    Definition at line 120 of file value-inl.h.

    @@ -510,7 +513,7 @@ value_iterator 
    iter {}

    Returns the current depth in the document if in bounds.

    E.g., 0 = finished with document 1 = document root value (could be [ or {, not yet known) 2 = , or } inside root array/object 3 = key or value inside root array/object.

    -

    Definition at line 183 of file value-inl.h.

    +

    Definition at line 186 of file value-inl.h.

    @@ -540,7 +543,7 @@ value_iterator 
    iter {}

    Sentinel representing the end of the array.

    Part of the std::iterable interface.

    -

    Definition at line 104 of file value-inl.h.

    +

    Definition at line 107 of file value-inl.h.

    @@ -587,7 +590,7 @@ value_iterator 
    iter {}
    Returns
    The value of the field, or NO_SUCH_FIELD if the field is not in the object.

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    -

    Definition at line 129 of file value-inl.h.

    +

    Definition at line 132 of file value-inl.h.

    @@ -629,7 +632,7 @@ value_iterator 
    iter {}
    Returns
    The value of the field, or NO_SUCH_FIELD if the field is not in the object.

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    -

    Definition at line 136 of file value-inl.h.

    +

    Definition at line 139 of file value-inl.h.

    @@ -660,7 +663,7 @@ template<typename T >

    Get this value as the given type.

    Supported types: object, array, raw_json_string, string_view, uint64_t, int64_t, double, bool

    -

    You may use get_double(), get_bool(), get_uint64(), get_int64(), get_object(), get_array(), get_raw_json_string(), or get_string() instead.

    +

    You may use get_double(), get_bool(), get_uint64(), get_int64(), get_object(), get_array(), get_raw_json_string(), or get_string() instead.

    Returns
    A value of the given type, parsed from the JSON.
    INCORRECT_TYPE If the JSON value is not the given type.
    @@ -707,7 +710,7 @@ template<typename T >
    SUCCESS If the parse succeeded and the out parameter was set to the value.
    -

    Definition at line 70 of file value-inl.h.

    +

    Definition at line 73 of file value-inl.h.

    @@ -771,7 +774,7 @@ INCORRECT_TYPE If the JSON value is not an array.
    INCORRECT_TYPE if the JSON value is not true or false.
    -

    Definition at line 54 of file value-inl.h.

    +

    Definition at line 57 of file value-inl.h.

    @@ -803,7 +806,7 @@ INCORRECT_TYPE if the JSON value is not true or false.
    INCORRECT_TYPE If the JSON value is not a valid floating-point number.
    -

    Definition at line 36 of file value-inl.h.

    +

    Definition at line 39 of file value-inl.h.

    @@ -835,7 +838,7 @@ INCORRECT_TYPE If the JSON value is not a valid floating-point number. INCORRECT_TYPE If the JSON value is not a valid floating-point number. -

    Definition at line 39 of file value-inl.h.

    +

    Definition at line 42 of file value-inl.h.

    @@ -867,7 +870,7 @@ INCORRECT_TYPE If the JSON value is not a valid floating-point number. INCORRECT_TYPE If the JSON value is not a 64-bit integer. -

    Definition at line 48 of file value-inl.h.

    +

    Definition at line 51 of file value-inl.h.

    @@ -899,7 +902,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.
    INCORRECT_TYPE If the JSON value is not a 64-bit integer.
    -

    Definition at line 51 of file value-inl.h.

    +

    Definition at line 54 of file value-inl.h.

    @@ -934,7 +937,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

    You must check the type before accessing the value: it is an error to call "get_int64()" when number.get_number_type() is not number_type::signed_integer and when number.is_int64() is false.

    Performance note: this is designed with performance in mind. When calling 'get_number()', you scan the number string only once, determining efficiently the type and storing it in an efficient manner.

    -

    Definition at line 171 of file value-inl.h.

    +

    Definition at line 174 of file value-inl.h.

    @@ -968,7 +971,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

    This function requires processing the number string, but it is expected to be faster than get_number().get_number_type() because it is does not parse the number value.

    Returns
    the type of the number
    -

    Definition at line 168 of file value-inl.h.

    +

    Definition at line 171 of file value-inl.h.

    @@ -1038,8 +1041,8 @@ INCORRECT_TYPE if the JSON value is not a string. - -

    ◆ get_string()

    + +

    ◆ get_string()

    @@ -1050,7 +1053,8 @@ INCORRECT_TYPE if the JSON value is not a string.
    simdjson_inline simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value::get_string ()bool allow_replacement = false)
    @@ -1064,7 +1068,7 @@ INCORRECT_TYPE if the JSON value is not a string.

    Cast this JSON value to a string.

    The string is guaranteed to be valid UTF-8.

    Equivalent to get<std::string_view>().

    -

    Important: a value should be consumed once. Calling get_string() twice on the same value is an error.

    +

    Important: a value should be consumed once. Calling get_string() twice on the same value is an error.

    Returns
    An UTF-8 string. The string is stored in the parser and will be invalidated the next time it parses a document or when it is destroyed.
    INCORRECT_TYPE if the JSON value is not a string.
    @@ -1101,7 +1105,7 @@ INCORRECT_TYPE if the JSON value is not a string.
    INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.
    -

    Definition at line 42 of file value-inl.h.

    +

    Definition at line 45 of file value-inl.h.

    @@ -1133,7 +1137,41 @@ INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.
    INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.
    -

    Definition at line 45 of file value-inl.h.

    +

    Definition at line 48 of file value-inl.h.

    + + + + +

    ◆ get_wobbly_string()

    + +
    +
    + + + + + +
    + + + + + + + +
    simdjson_inline simdjson_result< std::string_view > simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value::get_wobbly_string ()
    +
    +noexcept
    +
    + +

    Cast this JSON value to a "wobbly" string.

    +

    The string is may not be a valid UTF-8 string. See https://simonsapin.github.io/wtf-8/

    +

    Important: a value should be consumed once. Calling get_wobbly_string() twice on the same value is an error.

    +
    Returns
    An UTF-8 string. The string is stored in the parser and will be invalidated the next time it parses a document or when it is destroyed.
    +
    +INCORRECT_TYPE if the JSON value is not a string.
    + +

    Definition at line 36 of file value-inl.h.

    @@ -1165,7 +1203,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.

    Performance note: if you call this function systematically before parsing a number, you may have fallen for a performance anti-pattern.

    Returns
    true if the number if negative.
    -

    Definition at line 165 of file value-inl.h.

    +

    Definition at line 168 of file value-inl.h.

    @@ -1195,7 +1233,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.

    Checks whether the value is a negative number.

    Returns
    true if the number if negative.
    -

    Definition at line 161 of file value-inl.h.

    +

    Definition at line 164 of file value-inl.h.

    @@ -1228,7 +1266,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit unsigned integer.
    INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.
    -

    Definition at line 57 of file value-inl.h.

    +

    Definition at line 60 of file value-inl.h.

    @@ -1259,7 +1297,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.

    Returns false when there it is an array or object.

    Returns
    true if the type is string, number, null, Boolean @error TAPE_ERROR when the JSON value is a bad token like "}" "," or "alse".
    -

    Definition at line 154 of file value-inl.h.

    +

    Definition at line 157 of file value-inl.h.

    @@ -1295,7 +1333,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 75 of file value-inl.h.

    +

    Definition at line 78 of file value-inl.h.

    @@ -1331,7 +1369,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 96 of file value-inl.h.

    +

    Definition at line 99 of file value-inl.h.

    @@ -1367,7 +1405,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 87 of file value-inl.h.

    +

    Definition at line 90 of file value-inl.h.

    @@ -1403,7 +1441,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 84 of file value-inl.h.

    +

    Definition at line 87 of file value-inl.h.

    @@ -1439,7 +1477,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 78 of file value-inl.h.

    +

    Definition at line 81 of file value-inl.h.

    @@ -1477,7 +1515,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 93 of file value-inl.h.

    +

    Definition at line 96 of file value-inl.h.

    @@ -1515,7 +1553,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 90 of file value-inl.h.

    +

    Definition at line 93 of file value-inl.h.

    @@ -1551,7 +1589,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'. -

    Definition at line 81 of file value-inl.h.

    +

    Definition at line 84 of file value-inl.h.

    @@ -1592,7 +1630,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.
  • null
  • -

    Definition at line 175 of file value-inl.h.

    +

    Definition at line 178 of file value-inl.h.

    @@ -1655,7 +1693,7 @@ INCORRECT_TYPE If the JSON value begins with 'n' and is not 'null'.

    NOTE: If you're only expecting a value to be one type (a typical case), it's generally better to just call .get_double, .get_string, etc. and check for INCORRECT_TYPE (or just let it throw an exception).

    Returns
    The type of JSON value (json_type::array, json_type::object, json_type::string, json_type::number, json_type::boolean, or json_type::null). @error TAPE_ERROR when the JSON value is a bad token like "}" "," or "alse".
    -

    Definition at line 150 of file value-inl.h.

    +

    Definition at line 153 of file value-inl.h.

    diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.js b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.js index f19f1cfe7..9c8cad25f 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.js +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.js @@ -27,9 +27,10 @@ var classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_ [ "get_number_type", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a2f46079741d1ba316de32bb9765c5082", null ], [ "get_object", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a3bde0795cb309f3e51b8388fbafc1fe4", null ], [ "get_raw_json_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#aca8b183c4e674a5b4ade8f6d2780f815", null ], - [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a8e96b60b036694be5ef43fb564ab8d1b", null ], + [ "get_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a9d574e04d5dfde0bf99dea4926232fe4", null ], [ "get_uint64", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#adaa7bb2c9b3988476f3317ddda27e22d", null ], [ "get_uint64_in_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a8bc2eb9eeeb7e2e0b82c23ed4d254933", null ], + [ "get_wobbly_string", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#ab7bb6749f40bec70c8a1a31edad53c1d", null ], [ "is_integer", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a5ab2c9c7d29a7a6c09f78930b0100836", null ], [ "is_negative", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a2701c283de019e56624e930e936e0df0", null ], [ "is_null", "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html#a04f1c591d93d834377a9cb916c90e09b", null ], diff --git a/field-inl_8h_source.html b/field-inl_8h_source.html index e7ee3ff79..df6588231 100644 --- a/field-inl_8h_source.html +++ b/field-inl_8h_source.html @@ -114,9 +114,9 @@ $(document).ready(function(){initNavTree('field-inl_8h_source.html',''); initRes
    21  return field(key, parent_iter.child());
    22 }
    23 
    -
    24 simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> field::unescaped_key() noexcept {
    +
    24 simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> field::unescaped_key(bool allow_replacement) noexcept {
    25  SIMDJSON_ASSUME(first.buf != nullptr); // We would like to call .alive() but Visual Studio won't let us.
    -
    26  simdjson_result<std::string_view> answer = first.unescape(second.iter.json_iter());
    +
    26  simdjson_result<std::string_view> answer = first.unescape(second.iter.json_iter(), allow_replacement);
    27  first.consume();
    28  return answer;
    29 }
    @@ -159,9 +159,9 @@ $(document).ready(function(){initNavTree('field-inl_8h_source.html',''); initRes
    66  if (error()) { return error(); }
    67  return first.key();
    68 }
    -
    69 simdjson_inline simdjson_result<std::string_view> simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::field>::unescaped_key() noexcept {
    -
    70  if (error()) { return error(); }
    -
    71  return first.unescaped_key();
    +
    69 simdjson_inline simdjson_result<std::string_view> simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::field>::unescaped_key(bool allow_replacement) noexcept {
    +
    70  if (error()) { return error(); }
    +
    71  return first.unescaped_key(allow_replacement);
    72 }
    73 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::field>::value() noexcept {
    74  if (error()) { return error(); }
    @@ -169,8 +169,8 @@ $(document).ready(function(){initNavTree('field-inl_8h_source.html',''); initRes
    76 }
    77 
    78 } // namespace simdjson
    -
    simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key() noexcept
    Get the key as a string_view (for higher speed, consider raw_key).
    Definition: field-inl.h:24
    simdjson_inline raw_json_string key() const noexcept
    Get the key as a raw_json_string.
    Definition: field-inl.h:31
    +
    simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key(bool allow_replacement) noexcept
    Get the key as a string_view (for higher speed, consider raw_key).
    Definition: field-inl.h:24
    simdjson_inline field() noexcept
    Create a new invalid field.
    Definition: field-inl.h:6
    simdjson_inline ondemand::value & value() &noexcept
    Get the field value.
    Definition: field-inl.h:36
    A string escaped per JSON rules, terminated with quote (").
    diff --git a/field_8h_source.html b/field_8h_source.html index 75e6b5eb8..cacc29f01 100644 --- a/field_8h_source.html +++ b/field_8h_source.html @@ -101,7 +101,7 @@ $(document).ready(function(){initNavTree('field_8h_source.html',''); initResizab
    15 public:
    21  simdjson_inline field() noexcept;
    22 
    -
    31  simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> unescaped_key() noexcept;
    +
    31  simdjson_inline simdjson_warn_unused simdjson_result<std::string_view> unescaped_key(bool allow_replacement) noexcept;
    36  simdjson_inline raw_json_string key() const noexcept;
    40  simdjson_inline ondemand::value &value() & noexcept;
    44  simdjson_inline ondemand::value value() && noexcept;
    @@ -127,15 +127,15 @@ $(document).ready(function(){initNavTree('field_8h_source.html',''); initResizab
    64  simdjson_inline simdjson_result(error_code error) noexcept;
    65  simdjson_inline simdjson_result() noexcept = default;
    66 
    -
    67  simdjson_inline simdjson_result<std::string_view> unescaped_key() noexcept;
    +
    67  simdjson_inline simdjson_result<std::string_view> unescaped_key(bool allow_replacement = false) noexcept;
    68  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string> key() noexcept;
    69  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> value() noexcept;
    70 };
    71 
    72 } // namespace simdjson
    A JSON field (key/value pair) in an object.
    Definition: field.h:14
    -
    simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key() noexcept
    Get the key as a string_view (for higher speed, consider raw_key).
    Definition: field-inl.h:24
    simdjson_inline raw_json_string key() const noexcept
    Get the key as a raw_json_string.
    Definition: field-inl.h:31
    +
    simdjson_inline simdjson_warn_unused simdjson_result< std::string_view > unescaped_key(bool allow_replacement) noexcept
    Get the key as a string_view (for higher speed, consider raw_key).
    Definition: field-inl.h:24
    simdjson_inline field() noexcept
    Create a new invalid field.
    Definition: field-inl.h:6
    simdjson_inline ondemand::value & value() &noexcept
    Get the field value.
    Definition: field-inl.h:36
    @@ -144,8 +144,8 @@ $(document).ready(function(){initNavTree('field_8h_source.html',''); initResizab
    We want to support argument-dependent lookup (ADL).
    error_code
    All possible errors returned by simdjson.
    Definition: error.h:17
    The result of a simdjson operation that could fail.
    -
    -
    Definition: value.h:573
    +
    +
    Definition: value.h:588
    The result of a simdjson operation that could fail.
    Definition: error.h:205
    simdjson_inline error_code error() const noexcept
    The error.
    Definition: error-inl.h:132
    simdjson_inline T & value() &noexcept(false)
    Get the result value.
    diff --git a/functions_func_g.html b/functions_func_g.html index 7c1e5101e..cba629c37 100644 --- a/functions_func_g.html +++ b/functions_func_g.html @@ -150,8 +150,8 @@ $(document).ready(function(){initNavTree('functions_func_g.html',''); initResiza
  • get_string() : simdjson::dom::element -, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document -, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value +, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document +, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
  • get_string_length() : simdjson::dom::element @@ -170,6 +170,10 @@ $(document).ready(function(){initNavTree('functions_func_g.html',''); initResiza
  • get_value() : simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document
  • +
  • get_wobbly_string() +: simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document +, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value +
  • diff --git a/functions_func_u.html b/functions_func_u.html index 039f73a0f..3a05973fc 100644 --- a/functions_func_u.html +++ b/functions_func_u.html @@ -91,10 +91,13 @@ $(document).ready(function(){initNavTree('functions_func_u.html',''); initResiza

    - u -

    diff --git a/functions_u.html b/functions_u.html index cbb0f0f85..9e8a18d90 100644 --- a/functions_u.html +++ b/functions_u.html @@ -91,10 +91,13 @@ $(document).ready(function(){initNavTree('functions_u.html',''); initResizable()

    - u -