Searched refs:GetWithDefault (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | pointertest.cpp | 630 TEST(Pointer, GetWithDefault) { in TEST() argument 637 EXPECT_TRUE(Value("bar") == Pointer("/foo/0").GetWithDefault(d, v, a)); in TEST() 638 EXPECT_TRUE(Value("baz") == Pointer("/foo/1").GetWithDefault(d, v, a)); in TEST() 639 EXPECT_TRUE(Value("qux") == Pointer("/foo/2").GetWithDefault(d, v, a)); in TEST() 640 EXPECT_TRUE(Value("last") == Pointer("/foo/-").GetWithDefault(d, Value("last").Move(), a)); in TEST() 643 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, Value().Move(), a).IsNull()); in TEST() 644 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, "x", a).IsNull()); in TEST() 647 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -1, a).GetInt()); in TEST() 648 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -2, a).GetInt()); in TEST() 649 EXPECT_EQ(0x87654321, Pointer("/foo/uint").GetWithDefault(d, 0x87654321, a).GetUint()); in TEST() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | pointer.h | 504 …ValueType& GetWithDefault(ValueType& root, const ValueType& defaultValue, typename ValueType::Allo… in GetWithDefault() function 511 …ValueType& GetWithDefault(ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorTy… in GetWithDefault() function 519 …ValueType& GetWithDefault(ValueType& root, const std::basic_string<Ch>& defaultValue, typename Val… in GetWithDefault() function 532 …GetWithDefault(ValueType& root, T defaultValue, typename ValueType::AllocatorType& allocator) cons… in GetWithDefault() function 533 return GetWithDefault(root, ValueType(defaultValue).Move(), allocator); in GetWithDefault() 538 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault() function 539 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault() 544 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault() function 545 return GetWithDefault(document, defaultValue, document.GetAllocator()); in GetWithDefault() 551 …ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAl… in GetWithDefault() function [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | pointer.md | 57 // GetWithDefault() returns reference. And it deep clones the default value. 58 Value& hello = Pointer("/hello").GetWithDefault(d, "world"); 126 The other functions, including `Create()`, `GetWithDefault()`, `Set()` and `Swap()`, will change th…
|