Lines Matching refs:Value
36 static const unsigned char ALIGNAS(8) kNull[sizeof(Value)] = { 0 };
38 const Value& Value::null = reinterpret_cast<const Value&>(kNullRef);
40 const Int Value::minInt = Int(~(UInt(-1) / 2));
41 const Int Value::maxInt = Int(UInt(-1) / 2);
42 const UInt Value::maxUInt = UInt(-1);
44 const Int64 Value::minInt64 = Int64(~(UInt64(-1) / 2));
45 const Int64 Value::maxInt64 = Int64(UInt64(-1) / 2);
46 const UInt64 Value::maxUInt64 = UInt64(-1);
52 const LargestInt Value::minLargestInt = LargestInt(~(LargestUInt(-1) / 2));
53 const LargestInt Value::maxLargestInt = LargestInt(LargestUInt(-1) / 2);
54 const LargestUInt Value::maxLargestUInt = LargestUInt(-1);
93 if (length >= (unsigned)Value::maxInt) in duplicateStringValue()
94 length = Value::maxInt - 1; in duplicateStringValue()
137 Value::CommentInfo::CommentInfo() : comment_(0) {} in CommentInfo()
139 Value::CommentInfo::~CommentInfo() { in ~CommentInfo()
144 void Value::CommentInfo::setComment(const char* text) { in setComment()
167 Value::CZString::CZString(ArrayIndex index) : cstr_(0), index_(index) {} in CZString()
169 Value::CZString::CZString(const char* cstr, DuplicationPolicy allocate) in CZString()
173 Value::CZString::CZString(const CZString& other) in CZString()
182 Value::CZString::~CZString() { in ~CZString()
187 void Value::CZString::swap(CZString& other) { in swap()
192 Value::CZString& Value::CZString::operator=(CZString other) { in operator =()
197 bool Value::CZString::operator<(const CZString& other) const { in operator <()
203 bool Value::CZString::operator==(const CZString& other) const { in operator ==()
209 ArrayIndex Value::CZString::index() const { return index_; } in index()
211 const char* Value::CZString::c_str() const { return cstr_; } in c_str()
213 bool Value::CZString::isStaticString() const { return index_ == noDuplication; } in isStaticString()
229 Value::Value(ValueType type) { in Value() function in Json::Value
265 Value::Value(Int value) { in Value() function in Json::Value
270 Value::Value(UInt value) { in Value() function in Json::Value
275 Value::Value(Int64 value) { in Value() function in Json::Value
279 Value::Value(UInt64 value) { in Value() function in Json::Value
285 Value::Value(double value) { in Value() function in Json::Value
290 Value::Value(const char* value) { in Value() function in Json::Value
295 Value::Value(const char* beginValue, const char* endValue) { in Value() function in Json::Value
301 Value::Value(const std::string& value) { in Value() function in Json::Value
307 Value::Value(const StaticString& value) { in Value() function in Json::Value
313 Value::Value(const CppTL::ConstString& value) { in Value() function in Json::Value
319 Value::Value(bool value) { in Value() function in Json::Value
324 Value::Value(const Value& other) in Value() function in Json::Value
375 Value::~Value() { in ~Value()
408 Value& Value::operator=(Value other) { in operator =()
413 void Value::swap(Value& other) { in swap()
425 ValueType Value::type() const { return type_; } in type()
427 int Value::compare(const Value& other) const { in compare()
435 bool Value::operator<(const Value& other) const { in operator <()
474 bool Value::operator<=(const Value& other) const { return !(other < *this); } in operator <=()
476 bool Value::operator>=(const Value& other) const { return !(*this < other); } in operator >=()
478 bool Value::operator>(const Value& other) const { return other < *this; } in operator >()
480 bool Value::operator==(const Value& other) const { in operator ==()
520 bool Value::operator!=(const Value& other) const { return !(*this == other); } in operator !=()
522 const char* Value::asCString() const { in asCString()
528 std::string Value::asString() const { in asString()
548 CppTL::ConstString Value::asConstString() const { in asConstString()
553 Value::Int Value::asInt() const { in asInt()
575 Value::UInt Value::asUInt() const { in asUInt()
599 Value::Int64 Value::asInt64() const { in asInt64()
620 Value::UInt64 Value::asUInt64() const { in asUInt64()
642 LargestInt Value::asLargestInt() const { in asLargestInt()
650 LargestUInt Value::asLargestUInt() const { in asLargestUInt()
658 double Value::asDouble() const { in asDouble()
680 float Value::asFloat() const { in asFloat()
702 bool Value::asBool() const { in asBool()
720 bool Value::isConvertibleTo(ValueType other) const { in isConvertibleTo()
754 ArrayIndex Value::size() const { in size()
784 bool Value::empty() const { in empty()
791 bool Value::operator!() const { return isNull(); } in operator !()
793 void Value::clear() { in clear()
818 void Value::resize(ArrayIndex newSize) { in resize()
822 *this = Value(arrayValue); in resize()
840 Value& Value::operator[](ArrayIndex index) { in operator []()
845 *this = Value(arrayValue); in operator []()
860 Value& Value::operator[](int index) { in operator []()
867 const Value& Value::operator[](ArrayIndex index) const { in operator []()
880 Value* value = value_.array_->find(index); in operator []()
885 const Value& Value::operator[](int index) const { in operator []()
892 Value& Value::operator[](const char* key) { in operator []()
896 void Value::initBasic(ValueType type, bool allocated) { in initBasic()
907 Value& Value::resolveReference(const char* key, bool isStatic) { in resolveReference()
912 *this = Value(objectValue); in resolveReference()
922 Value& value = (*it).second; in resolveReference()
929 Value Value::get(ArrayIndex index, const Value& defaultValue) const { in get()
930 const Value* value = &((*this)[index]); in get()
934 bool Value::isValidIndex(ArrayIndex index) const { return index < size(); } in isValidIndex()
936 const Value& Value::operator[](const char* key) const { in operator []()
949 const Value* value = value_.map_->find(key); in operator []()
954 Value& Value::operator[](const std::string& key) { in operator []()
958 const Value& Value::operator[](const std::string& key) const { in operator []()
962 Value& Value::operator[](const StaticString& key) { in operator []()
967 Value& Value::operator[](const CppTL::ConstString& key) { in operator []()
971 const Value& Value::operator[](const CppTL::ConstString& key) const { in operator []()
976 Value& Value::append(const Value& value) { return (*this)[size()] = value; } in append()
978 Value Value::get(const char* key, const Value& defaultValue) const { in get()
979 const Value* value = &((*this)[key]); in get()
983 Value Value::get(const std::string& key, const Value& defaultValue) const { in get()
987 Value Value::removeMember(const char* key) { in removeMember()
997 Value old(it->second); in removeMember()
1001 Value* value = value_.map_->find(key); in removeMember()
1003 Value old(*value); in removeMember()
1012 Value Value::removeMember(const std::string& key) { in removeMember()
1017 Value Value::get(const CppTL::ConstString& key, in get()
1018 const Value& defaultValue) const { in get()
1023 bool Value::isMember(const char* key) const { in isMember()
1024 const Value* value = &((*this)[key]); in isMember()
1028 bool Value::isMember(const std::string& key) const { in isMember()
1033 bool Value::isMember(const CppTL::ConstString& key) const { in isMember()
1038 Value::Members Value::getMemberNames() const { in getMemberNames()
1043 return Value::Members(); in getMemberNames()
1092 bool Value::isNull() const { return type_ == nullValue; } in isNull()
1094 bool Value::isBool() const { return type_ == booleanValue; } in isBool()
1096 bool Value::isInt() const { in isInt()
1111 bool Value::isUInt() const { in isUInt()
1126 bool Value::isInt64() const { in isInt64()
1146 bool Value::isUInt64() const { in isUInt64()
1166 bool Value::isIntegral() const { in isIntegral()
1174 bool Value::isDouble() const { return type_ == realValue || isIntegral(); } in isDouble()
1176 bool Value::isNumeric() const { return isIntegral() || isDouble(); } in isNumeric()
1178 bool Value::isString() const { return type_ == stringValue; } in isString()
1180 bool Value::isArray() const { return type_ == arrayValue; } in isArray()
1182 bool Value::isObject() const { return type_ == objectValue; } in isObject()
1184 void Value::setComment(const char* comment, CommentPlacement placement) { in setComment()
1190 void Value::setComment(const std::string& comment, CommentPlacement placement) { in setComment()
1194 bool Value::hasComment(CommentPlacement placement) const { in hasComment()
1198 std::string Value::getComment(CommentPlacement placement) const { in getComment()
1204 void Value::setOffsetStart(size_t start) { start_ = start; } in setOffsetStart()
1206 void Value::setOffsetLimit(size_t limit) { limit_ = limit; } in setOffsetLimit()
1208 size_t Value::getOffsetStart() const { return start_; } in getOffsetStart()
1210 size_t Value::getOffsetLimit() const { return limit_; } in getOffsetLimit()
1212 std::string Value::toStyledString() const { in toStyledString()
1217 Value::const_iterator Value::begin() const { in begin()
1247 Value::const_iterator Value::end() const { in end()
1277 Value::iterator Value::begin() { in begin()
1307 Value::iterator Value::end() { in end()
1417 const Value& Path::resolve(const Value& root) const { in resolve()
1418 const Value* node = &root; in resolve()
1431 if (node == &Value::null) { in resolve()
1440 Value Path::resolve(const Value& root, const Value& defaultValue) const { in resolve()
1441 const Value* node = &root; in resolve()
1452 if (node == &Value::null) in resolve()
1459 Value& Path::make(Value& root) const { in make()
1460 Value* node = &root; in make()