HomeSort by relevance Sort by last modified time
    Searched refs:GetWithDefault (Results 1 - 2 of 2) sorted by null

  /packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
pointertest.cpp 630 TEST(Pointer, GetWithDefault) {
637 EXPECT_TRUE(Value("bar") == Pointer("/foo/0").GetWithDefault(d, v, a));
638 EXPECT_TRUE(Value("baz") == Pointer("/foo/1").GetWithDefault(d, v, a));
639 EXPECT_TRUE(Value("qux") == Pointer("/foo/2").GetWithDefault(d, v, a));
640 EXPECT_TRUE(Value("last") == Pointer("/foo/-").GetWithDefault(d, Value("last").Move(), a));
643 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, Value().Move(), a).IsNull());
644 EXPECT_TRUE(Pointer("/foo/null").GetWithDefault(d, "x", a).IsNull());
647 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -1, a).GetInt());
648 EXPECT_EQ(-1, Pointer("/foo/int").GetWithDefault(d, -2, a).GetInt());
649 EXPECT_EQ(0x87654321, Pointer("/foo/uint").GetWithDefault(d, 0x87654321, a).GetUint())
    [all...]
  /packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
pointer.h 504 ValueType& GetWithDefault(ValueType& root, const ValueType& defaultValue, typename ValueType::AllocatorType& allocator) const {
511 ValueType& GetWithDefault(ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorType& allocator) const {
519 ValueType& GetWithDefault(ValueType& root, const std::basic_string<Ch>& defaultValue, typename ValueType::AllocatorType& allocator) const {
532 GetWithDefault(ValueType& root, T defaultValue, typename ValueType::AllocatorType& allocator) const {
533 return GetWithDefault(root, ValueType(defaultValue).Move(), allocator);
538 ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, const ValueType& defaultValue) const {
539 return GetWithDefault(document, defaultValue, document.GetAllocator());
544 ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, const Ch* defaultValue) const {
545 return GetWithDefault(document, defaultValue, document.GetAllocator());
551 ValueType& GetWithDefault(GenericDocument<EncodingType, typename ValueType::AllocatorType, stackAllocator>& document, const (…)
    [all...]

Completed in 1341 milliseconds