/third_party/jsoncpp/src/test_lib_json/ |
D | main.cpp | 30 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 …]
|
D | jsontest.cpp | 83 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 …]
|
D | jsontest.h | 36 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 …]
|
D | fuzz.cpp | 14 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/ |
D | main.cpp | 24 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/vk-gl-cts/external/vulkancts/vkscpc/ |
D | vkscpc.cpp | 89 Json::Value jsonRoot; in importFilesForExternalCompiler() 104 const Json::Value& jsonGraphicsPipelineState = jsonRoot["GraphicsPipelineState"]; in importFilesForExternalCompiler() 105 const Json::Value& jsonComputePipelineState = jsonRoot["ComputePipelineState"]; in importFilesForExternalCompiler() 106 …const Json::Value& jsonPipelineState = (pipelineType == PT_GRAPHICS_PIPELINE ) ? jsonGraph… in importFilesForExternalCompiler() 110 const Json::Value& jsonSamplerYcbcrConversions = jsonPipelineState["YcbcrSamplers"]; in importFilesForExternalCompiler() 113 for (Json::ArrayIndex i = 0; i < jsonSamplerYcbcrConversions.size(); ++i) in importFilesForExternalCompiler() 115 const Json::Value::Members membersNames = jsonSamplerYcbcrConversions[i].getMemberNames(); in importFilesForExternalCompiler() 116 const Json::Value& value = jsonSamplerYcbcrConversions[i][membersNames[0]]; in importFilesForExternalCompiler() 123 const Json::Value& jsonSamplers = jsonPipelineState["ImmutableSamplers"]; in importFilesForExternalCompiler() 126 for (Json::ArrayIndex i = 0; i < jsonSamplers.size(); ++i) in importFilesForExternalCompiler() [all …]
|
/third_party/flutter/engine/flutter/shell/platform/common/cpp/client_wrapper/ |
D | json_method_codec.cc | 61 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 …]
|
D | json_message_codec.cc | 35 Json::StreamWriterBuilder writer_builder; in EncodeMessageInternal() 36 std::string serialization = Json::writeString(writer_builder, message); in EncodeMessageInternal() 57 Json::CharReaderBuilder reader_builder; in DecodeMessageInternal() 58 std::unique_ptr<Json::CharReader> parser(reader_builder.newCharReader()); in DecodeMessageInternal()
|
/third_party/flutter/skia/src/ports/skia_ohos/ |
D | FontConfig_ohos.h | 198 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 …]
|
D | FontConfig_ohos.cpp | 348 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/skia/src/ports/skia_ohos/ |
D | FontConfig_ohos.h | 200 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 …]
|
D | FontConfig_ohos.cpp | 339 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/rust/crates/cxx/book/src/binding/ |
D | cxxstring.md | 40 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/ |
D | stringWrite.cpp | 16 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/ |
D | json.h | 199 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/ |
D | json.h | 199 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/ |
D | json.h | 199 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/protobuf/conformance/third_party/jsoncpp/ |
D | json.h | 227 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/jsoncpp/include/json/ |
D | config.h | 107 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/jsoncpp/doc/ |
D | jsoncpp.dox | 53 Json::Value root; // 'root' will contain the root value after parsing. 65 const Json::Value plugins = root["plug-ins"]; 75 // Since Json::Value has an implicit constructor for all value types, it is not 76 // necessary to explicitly construct the Json::Value object. 92 configuration, we use our own `Json::Value` (rather than 98 Json::StreamWriterBuilder wbuilder; 100 std::string document = Json::writeString(wbuilder, root); 104 Json::CharReaderBuilder rbuilder; 107 bool ok = Json::parseFromStream(rbuilder, std::cin, &root, &errs); 111 but `Json::Value` lets you [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | recursiveTypeReferences2.js | 81 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/ |
D | readFromString.cpp | 18 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()
|
/third_party/vk-gl-cts/external/jsoncpp/ |
D | config.h.cts | 68 // If JSON_NO_INT64 is defined, then Json only support C++ "int" type for 108 namespace Json { 142 } // namespace Json 145 using JSONCPP_STRING = Json::String; 146 using JSONCPP_ISTRINGSTREAM = Json::IStringStream; 147 using JSONCPP_OSTRINGSTREAM = Json::OStringStream; 148 using JSONCPP_ISTREAM = Json::IStream; 149 using JSONCPP_OSTREAM = Json::OStream;
|
/third_party/jsoncpp/example/streamWrite/ |
D | streamWrite.cpp | 14 Json::Value root; in main() 15 Json::StreamWriterBuilder builder; in main() 16 const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter()); in main()
|
/third_party/flutter/skia/third_party/externals/angle2/src/feature_support_util/ |
D | feature_support_util.cpp | 256 static Version *CreateVersionFromJson(const Json::Value &jObject) in CreateVersionFromJson() 371 static Application *CreateApplicationFromJson(const Json::Value &jObject) in CreateApplicationFromJson() 452 static GPU *CreateGpuFromJson(const Json::Value &jObject) in CreateGpuFromJson() 539 static Device *CreateDeviceFromJson(const Json::Value &jObject) in CreateDeviceFromJson() 702 Json::Reader jReader; in ReadRulesFromJsonString() 703 Json::Value jTopLevelObject; in ReadRulesFromJsonString() 705 Json::Value jRules = jTopLevelObject[kJsonRules]; in ReadRulesFromJsonString() 708 Json::Value jRule = jRules[ruleIndex]; in ReadRulesFromJsonString() 713 Json::Value jApps = jRule[kJsonApplications]; in ReadRulesFromJsonString() 716 Json::Value jApp = jApps[appIndex]; in ReadRulesFromJsonString() [all …]
|