Home
last modified time | relevance | path

Searched refs:Json (Results 1 – 25 of 142) sorted by relevance

123456

/third_party/jsoncpp/src/test_lib_json/
Dmain.cpp30 using CharReaderPtr = std::unique_ptr<Json::CharReader>;
34 #define kint32max Json::Value::maxInt
35 #define kint32min Json::Value::minInt
36 #define kuint32max Json::Value::maxUInt
37 #define kint64max Json::Value::maxInt64
38 #define kint64min Json::Value::minInt64
39 #define kuint64max Json::Value::maxUInt64
53 static inline double uint64ToDouble(Json::UInt64 value) { in uint64ToDouble()
57 static inline double uint64ToDouble(Json::UInt64 value) { in uint64ToDouble()
58 return static_cast<double>(Json::Int64(value / 2)) * 2.0 + in uint64ToDouble()
[all …]
Djsontest.cpp83 void TestResult::setTestName(const Json::String& name) { name_ = name; } in setTestName()
151 Json::String indent(failure.nestingLevel_ * 2, ' '); in printFailure()
161 Json::String reindented = indentText(failure.message_, indent + " "); in printFailure()
167 Json::String TestResult::indentText(const Json::String& text, in indentText()
168 const Json::String& indent) { in indentText()
169 Json::String reindented; in indentText()
170 Json::String::size_type lastIndex = 0; in indentText()
172 Json::String::size_type nextIndex = text.find('\n', lastIndex); in indentText()
173 if (nextIndex == Json::String::npos) { in indentText()
183 TestResult& TestResult::addToLastFailure(const Json::String& message) { in addToLastFailure()
[all …]
Djsontest.h36 Json::String expr_;
37 Json::String message_;
69 void setTestName(const Json::String& name);
86 Json::OStringStream oss;
94 TestResult& operator<<(Json::Int64 value);
95 TestResult& operator<<(Json::UInt64 value);
98 TestResult& addToLastFailure(const Json::String& message);
102 static Json::String indentText(const Json::String& text,
103 const Json::String& indent);
107 Json::String name_;
[all …]
Dfuzz.cpp14 namespace Json { namespace
19 Json::CharReaderBuilder builder; in LLVMFuzzerTestOneInput()
44 std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in LLVMFuzzerTestOneInput()
46 Json::Value root; in LLVMFuzzerTestOneInput()
50 } catch (Json::Exception const&) { in LLVMFuzzerTestOneInput()
/third_party/jsoncpp/src/jsontestrunner/
Dmain.cpp24 Json::String path;
25 Json::Features features;
27 using writeFuncType = Json::String (*)(Json::Value const&);
31 static Json::String normalizeFloatingPointStr(double value) { in normalizeFloatingPointStr()
35 Json::String s(buffer); in normalizeFloatingPointStr()
36 Json::String::size_type index = s.find_last_of("eE"); in normalizeFloatingPointStr()
37 if (index != Json::String::npos) { in normalizeFloatingPointStr()
38 Json::String::size_type hasSign = in normalizeFloatingPointStr()
40 Json::String::size_type exponentStartIndex = index + 1 + hasSign; in normalizeFloatingPointStr()
41 Json::String normalized = s.substr(0, exponentStartIndex); in normalizeFloatingPointStr()
[all …]
/third_party/flutter/engine/flutter/shell/platform/common/cpp/client_wrapper/
Djson_method_codec.cc61 Json::Value method = (*json_message)[kMessageMethodKey]; in DecodeMethodCallInternal()
65 return std::make_unique<MethodCall<Json::Value>>( in DecodeMethodCallInternal()
67 std::make_unique<Json::Value>((*json_message)[kMessageArgumentsKey])); in DecodeMethodCallInternal()
87 Json::Value message(Json::objectValue); in EncodeMethodCallInternal()
89 const Json::Value* arguments = method_call.arguments(); in EncodeMethodCallInternal()
90 message[kMessageArgumentsKey] = arguments ? *arguments : Json::Value(); in EncodeMethodCallInternal()
108 Json::Value envelope(Json::arrayValue); in EncodeSuccessEnvelopeInternal()
109 envelope.append(result == nullptr ? Json::Value() : *result); in EncodeSuccessEnvelopeInternal()
131 Json::Value envelope(Json::arrayValue); in EncodeErrorEnvelopeInternal()
133 envelope.append(error_message.empty() ? Json::Value() : error_message); in EncodeErrorEnvelopeInternal()
[all …]
/third_party/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/
DUnionInNestedNS.cs8 [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
35 public class UnionInNestedNSUnion_JsonConverter : Newtonsoft.Json.JsonConverter {
39 …public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Js… in WriteJson()
49 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, UnionInNestedNSUnion _o, Newtonsoft.Json.… in WriteJson()
53 …erride object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingV… in ReadJson()
66 …ic UnionInNestedNSUnion ReadJson(Newtonsoft.Json.JsonReader reader, UnionInNestedNSUnion _o, Newto… in ReadJson()
/third_party/flatbuffers/tests/MyGame/Example/
DAny.cs8 [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
41 public class AnyUnion_JsonConverter : Newtonsoft.Json.JsonConverter {
45 …public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Js… in WriteJson()
55 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, AnyUnion _o, Newtonsoft.Json.JsonSerializ… in WriteJson()
59 …erride object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingV… in ReadJson()
72 …public AnyUnion ReadJson(Newtonsoft.Json.JsonReader reader, AnyUnion _o, Newtonsoft.Json.JsonSeria… in ReadJson()
DAnyAmbiguousAliases.cs8 [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
41 public class AnyAmbiguousAliasesUnion_JsonConverter : Newtonsoft.Json.JsonConverter {
45 …public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Js… in WriteJson()
55 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, AnyAmbiguousAliasesUnion _o, Newtonsoft.J… in WriteJson()
59 …erride object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingV… in ReadJson()
72 …AmbiguousAliasesUnion ReadJson(Newtonsoft.Json.JsonReader reader, AnyAmbiguousAliasesUnion _o, New… in ReadJson()
DAnyUniqueAliases.cs8 [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
41 public class AnyUniqueAliasesUnion_JsonConverter : Newtonsoft.Json.JsonConverter {
45 …public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Js… in WriteJson()
55 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, AnyUniqueAliasesUnion _o, Newtonsoft.Json in WriteJson()
59 …erride object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingV… in ReadJson()
72 …c AnyUniqueAliasesUnion ReadJson(Newtonsoft.Json.JsonReader reader, AnyUniqueAliasesUnion _o, Newt… in ReadJson()
DMonster.cs748 [Newtonsoft.Json.JsonProperty("pos")]
750 [Newtonsoft.Json.JsonProperty("mana")]
752 [Newtonsoft.Json.JsonProperty("hp")]
754 [Newtonsoft.Json.JsonProperty("name")]
756 [Newtonsoft.Json.JsonProperty("inventory")]
758 [Newtonsoft.Json.JsonProperty("color")]
760 [Newtonsoft.Json.JsonProperty("test_type")]
770 [Newtonsoft.Json.JsonProperty("test")]
771 [Newtonsoft.Json.JsonConverter(typeof(MyGame.Example.AnyUnion_JsonConverter))]
773 [Newtonsoft.Json.JsonProperty("test4")]
[all …]
/third_party/flatbuffers/tests/union_vector/
DCharacter.cs5 [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
47 public class CharacterUnion_JsonConverter : Newtonsoft.Json.JsonConverter {
51 …public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.Js… in WriteJson()
61 …public void WriteJson(Newtonsoft.Json.JsonWriter writer, CharacterUnion _o, Newtonsoft.Json.JsonSe… in WriteJson()
65 …erride object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingV… in ReadJson()
78 …public CharacterUnion ReadJson(Newtonsoft.Json.JsonReader reader, CharacterUnion _o, Newtonsoft.Js… in ReadJson()
/third_party/skia/src/ports/skia_ohos/
DFontConfig_ohos.h200 int checkConfigFile(const char* fname, Json::Value& root);
201 int parseFontDir(const Json::Value& root);
202 int parseGeneric(const Json::Value& root);
203 int parseFallback(const Json::Value& root);
204 int parseFallbackItem(const Json::Value& root);
205 int parseAlias(const Json::Value& root, std::vector<AliasInfo>& aliasSet);
206 int parseAdjust(const Json::Value& root, std::vector<AdjustInfo>& adjustSet);
207 int parseVariation(const Json::Value& root, std::vector<VariationInfo>& variationSet);
208 int parseTtcIndex(const Json::Value& root, const SkString& familyName);
221 int logErrInfo(int err, const char* key, Json::ValueType expected = Json::nullValue,
[all …]
DFontConfig_ohos.cpp339 Json::Value root; in parseConfig()
364 … return logErrInfo(ERROR_CONFIG_INVALID_VALUE_TYPE, key, Json::arrayValue, root[key].type()); in parseConfig()
366 const Json::Value& arr = root[key]; in parseConfig()
378 Json::objectValue, arr[i].type()); in parseConfig()
392 int FontConfig_OHOS::checkConfigFile(const char* fname, Json::Value& root) in checkConfigFile()
400 Json::CharReaderBuilder charReaderBuilder; in checkConfigFile()
401 std::unique_ptr<Json::CharReader> jsonReader(charReaderBuilder.newCharReader()); in checkConfigFile()
487 int FontConfig_OHOS::parseFontDir(const Json::Value& root) in parseFontDir()
496 …return logErrInfo(ERROR_CONFIG_INVALID_VALUE_TYPE, text.c_str(), Json::stringValue, root[i].type()… in parseFontDir()
508 int FontConfig_OHOS::parseGeneric(const Json::Value& root) in parseGeneric()
[all …]
/third_party/flutter/skia/src/ports/skia_ohos/
DFontConfig_ohos.h198 int checkConfigFile(const char* fname, Json::Value& root);
199 int parseFontDir(const Json::Value& root);
200 int parseGeneric(const Json::Value& root);
201 int parseFallback(const Json::Value& root);
202 int parseFallbackItem(const Json::Value& root);
203 int parseAlias(const Json::Value& root, std::vector<AliasInfo>& aliasSet);
204 int parseAdjust(const Json::Value& root, std::vector<AdjustInfo>& adjustSet);
205 int parseVariation(const Json::Value& root, std::vector<VariationInfo>& variationSet);
206 int parseTtcIndex(const Json::Value& root, const SkString& familyName);
219 int logErrInfo(int err, const char* key, Json::ValueType expected = Json::nullValue,
[all …]
DFontConfig_ohos.cpp348 Json::Value root; in parseConfig()
373 … return logErrInfo(ERROR_CONFIG_INVALID_VALUE_TYPE, key, Json::arrayValue, root[key].type()); in parseConfig()
375 const Json::Value& arr = root[key]; in parseConfig()
387 Json::objectValue, arr[i].type()); in parseConfig()
401 int FontConfig_OHOS::checkConfigFile(const char* fname, Json::Value& root) in checkConfigFile()
409 Json::CharReaderBuilder charReaderBuilder; in checkConfigFile()
410 std::unique_ptr<Json::CharReader> jsonReader(charReaderBuilder.newCharReader()); in checkConfigFile()
496 int FontConfig_OHOS::parseFontDir(const Json::Value& root) in parseFontDir()
505 …return logErrInfo(ERROR_CONFIG_INVALID_VALUE_TYPE, text.c_str(), Json::stringValue, root[i].type()… in parseFontDir()
517 int FontConfig_OHOS::parseGeneric(const Json::Value& root) in parseGeneric()
[all …]
/third_party/rust/crates/cxx/book/src/binding/
Dcxxstring.md40 type Json;
44 fn isNull(self: &Json) -> bool;
45 fn isNumber(self: &Json) -> bool;
46 fn isString(self: &Json) -> bool;
47 fn isArray(self: &Json) -> bool;
48 fn isObject(self: &Json) -> bool;
50 fn getNumber(self: &Json) -> f64;
51 fn getString(self: &Json) -> &CxxString;
52 fn getArray(self: &Json) -> &CxxVector<Json>;
53 fn getObject(self: &Json) -> &Object;
[all …]
/third_party/jsoncpp/example/stringWrite/
DstringWrite.cpp16 Json::Value root; in main()
17 Json::Value data; in main()
24 Json::FastWriter writer; in main()
28 Json::StreamWriterBuilder builder; in main()
29 const std::string json_file = Json::writeString(builder, root); in main()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/jsoncpp/dist/json/
Djson.h199 namespace Json {
248 namespace Json {
299 namespace Json {
391 namespace Json {
510 typedef Json::UInt UInt;
511 typedef Json::Int Int;
513 typedef Json::UInt64 UInt64;
514 typedef Json::Int64 Int64;
516 typedef Json::LargestInt LargestInt;
517 typedef Json::LargestUInt LargestUInt;
[all …]
/third_party/spirv-headers/tools/buildHeaders/jsoncpp/dist/json/
Djson.h199 namespace Json {
248 namespace Json {
299 namespace Json {
391 namespace Json {
510 typedef Json::UInt UInt;
511 typedef Json::Int Int;
513 typedef Json::UInt64 UInt64;
514 typedef Json::Int64 Int64;
516 typedef Json::LargestInt LargestInt;
517 typedef Json::LargestUInt LargestUInt;
[all …]
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/jsoncpp/dist/json/
Djson.h199 namespace Json {
248 namespace Json {
299 namespace Json {
391 namespace Json {
510 typedef Json::UInt UInt;
511 typedef Json::Int Int;
513 typedef Json::UInt64 UInt64;
514 typedef Json::Int64 Int64;
516 typedef Json::LargestInt LargestInt;
517 typedef Json::LargestUInt LargestUInt;
[all …]
/third_party/jsoncpp/include/json/
Dconfig.h107 namespace Json {
144 using JSONCPP_STRING = Json::String;
145 using JSONCPP_ISTRINGSTREAM = Json::IStringStream;
146 using JSONCPP_OSTRINGSTREAM = Json::OStringStream;
147 using JSONCPP_ISTREAM = Json::IStream;
148 using JSONCPP_OSTREAM = Json::OStream;
/third_party/protobuf/conformance/third_party/jsoncpp/
Djson.h227 namespace Json {
276 namespace Json {
327 namespace Json {
419 namespace Json {
553 typedef Json::UInt UInt;
554 typedef Json::Int Int;
556 typedef Json::UInt64 UInt64;
557 typedef Json::Int64 Int64;
559 typedef Json::LargestInt LargestInt;
560 typedef Json::LargestUInt LargestUInt;
[all …]
/third_party/typescript/tests/baselines/reference/
DrecursiveTypeReferences2.js81 type JsonArray = ReadonlyArray<Json>;
83 readonly [key: string]: Json;
85 type Json = boolean | number | string | null | JsonRecord | readonly Json[] | readonly [];
/third_party/jsoncpp/example/readFromString/
DreadFromString.cpp18 Json::Value root; in main()
21 Json::Reader reader; in main()
24 Json::CharReaderBuilder builder; in main()
25 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in main()

123456