Home
last modified time | relevance | path

Searched refs:is_string (Results 1 – 25 of 35) sorted by relevance

12

/third_party/json/doc/examples/
Dis_string.cpp21 std::cout << j_null.is_string() << '\n'; in main()
22 std::cout << j_boolean.is_string() << '\n'; in main()
23 std::cout << j_number_integer.is_string() << '\n'; in main()
24 std::cout << j_number_unsigned_integer.is_string() << '\n'; in main()
25 std::cout << j_number_float.is_string() << '\n'; in main()
26 std::cout << j_object.is_string() << '\n'; in main()
27 std::cout << j_array.is_string() << '\n'; in main()
28 std::cout << j_string.is_string() << '\n'; in main()
29 std::cout << j_binary.is_string() << '\n'; in main()
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dis_string.md1 # basic_json::is_string
4 constexpr bool is_string() const noexcept;
25 The following code exemplifies `is_string()` for all JSON types.
28 --8<-- "examples/is_string.cpp"
34 --8<-- "examples/is_string.output"
Dvalue_t.md19 …](is_null.md), [`is_object`](is_object.md), [`is_array`](is_array.md), [`is_string`](is_string.md),
Dis_primitive.md27 return is_null() || is_string() || is_boolean() || is_number() || is_binary();
Dindex.md127 - [**is_string**](is_string.md) - return whether value is a string
/third_party/json/test/src/
Dunit-inspection.cpp55 CHECK(!j.is_string());
73 CHECK(!j.is_string());
91 CHECK(!j.is_string());
109 CHECK(!j.is_string());
127 CHECK(j.is_string());
145 CHECK(!j.is_string());
163 CHECK(!j.is_string());
181 CHECK(!j.is_string());
199 CHECK(!j.is_string());
217 CHECK(!j.is_string());
Dunit-algorithms.cpp58 return value.is_string() && value.get<std::string>() == "foo"; in __anonc8c479c80302()
213 return v.is_string(); in __anonc8c479c80f02()
216 CHECK(!it[2].is_string());
Dunit-unicode1.cpp209 if (!s.is_string()) in skip()
/third_party/cef/tools/yapf/yapf/yapflib/
Dformat_decision_state.py199 if (current.is_name or current.is_string) and previous.value == ',':
220 elif current.is_string:
222 while tok and tok.is_string:
559 if (previous and previous.is_string and current.is_string and
609 is_multiline_string = current.is_string and '\n' in current.value
651 while tok.is_string:
Dunwrapped_line.py181 return tok.is_keyword or tok.is_name or tok.is_number or tok.is_string
236 if left.is_string:
337 if (cur_token.is_string and prev_token.is_string and
Dformat_token.py260 def is_string(self): member in FormatToken
266 return (self.is_string and
/third_party/libsnd/Octave/
Dsndfile.cc71 if ((nargin != 1) || !args (0) .is_string () || nargout < 1 || nargout > 3)
147 if (nargin != 4 || !args (0).is_string () || !args (1).is_real_matrix ()
148 || !args (2).is_real_scalar () || !args (3).is_string ()
/third_party/gn/src/base/
Dvalues.cc224 CHECK(is_string()); in GetString()
442 if (out_value && is_string()) { in GetAsString()
446 return is_string(); in GetAsString()
450 if (out_value && is_string()) { in GetAsString()
454 return is_string(); in GetAsString()
458 if (out_value && is_string()) { in GetAsString()
462 return is_string(); in GetAsString()
466 if (out_value && is_string()) { in GetAsString()
470 return is_string(); in GetAsString()
/third_party/gn/src/gn/
Dfunction_rebase_path_unittest.cc25 bool is_string = result.type() == Value::STRING; in RebaseOne() local
26 EXPECT_TRUE(is_string); in RebaseOne()
/third_party/cef/libcef/browser/prefs/
Dpref_store.cc158 if (value && stored_value->is_string()) { in GetString()
162 return stored_value->is_string(); in GetString()
/third_party/protobuf/php/src/Google/Protobuf/Internal/
DMessage.php824 } else if (!is_string($value)) {
831 } else if (!is_string($value)) {
888 if (!is_string($value)) {
897 if (!is_string($value)) {
950 if (is_string($value) && trim($value) !== $value) {
972 if (is_string($value) && trim($value) !== $value) {
991 if (is_string($value) && trim($value) !== $value) {
1013 if (is_string($value) && trim($value) !== $value) {
1194 } elseif (is_string($array)) {
DGPBUtil.php98 if (!is_string($var)) {
145 (is_string($var) &&
/third_party/mesa3d/src/gallium/frontends/clover/core/
Dprintf.cpp93 bool is_string = format[spec_pos] == 's'; in print_formatted() local
97 if (is_string) { in print_formatted()
/third_party/openssl/crypto/x509/
Dv3_san.c513 char is_string = 0; in a2i_GENERAL_NAME() local
535 is_string = 1; in a2i_GENERAL_NAME()
580 if (is_string) { in a2i_GENERAL_NAME()
/third_party/python/Lib/distutils/
Ddist.py902 is_string = isinstance(value, str)
903 if option in neg_opt and is_string:
905 elif option in bool_opts and is_string:
/third_party/json/include/nlohmann/
Djson.hpp1741 … return element_ref->is_array() && element_ref->size() == 2 && (*element_ref)[0].is_string(); in basic_json()
2504 return is_null() || is_string() || is_boolean() || is_number() || is_binary(); in is_primitive()
2754 constexpr bool is_string() const noexcept in is_string() function in nlohmann::basic_json
2879 return is_string() ? m_value.string : nullptr; in get_impl_ptr()
2885 return is_string() ? m_value.string : nullptr; in get_impl_ptr()
4240 if (is_string()) in erase()
4356 if (is_string()) in erase()
5588 if (is_object() && init.size() == 2 && (*init.begin())->is_string()) in push_back()
6224 if (JSON_HEDLEY_LIKELY(is_string())) in swap()
8587 if (JSON_HEDLEY_UNLIKELY(string_type && !it->second.is_string())) in patch()
/third_party/json/include/nlohmann/detail/conversions/
Dfrom_json.hpp86 if (JSON_HEDLEY_UNLIKELY(!j.is_string())) in from_json()
102 if (JSON_HEDLEY_UNLIKELY(!j.is_string())) in from_json()
/third_party/cef/libcef_dll/ctocpp/
Dv8value_ctocpp.cc307 if (CEF_MEMBER_MISSING(_struct, is_string)) in IsString()
313 int _retval = _struct->is_string(_struct); in IsString()
/third_party/cef/include/capi/
Dcef_v8_capi.h435 int(CEF_CALLBACK* is_string)(struct _cef_v8value_t* self);
/third_party/cef/libcef/common/
Dvalues_impl.cc273 if (value_ && value_->is_string()) in GetString()
816 if (value && value->is_string()) { in GetString()
1235 if (const_value().Get(index, &out_value) && out_value->is_string()) { in GetString()

12