Lines Matching refs:value_
2700 value_.int_ = 0; in Value()
2703 value_.real_ = 0.0; in Value()
2706 value_.string_ = 0; in Value()
2710 value_.map_ = new ObjectValues(); in Value()
2713 value_.bool_ = false; in Value()
2722 value_.int_ = value; in Value()
2727 value_.uint_ = value; in Value()
2732 value_.int_ = value; in Value()
2736 value_.uint_ = value; in Value()
2742 value_.real_ = value; in Value()
2747 value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value))); in Value()
2752 value_.string_ = in Value()
2758 value_.string_ = in Value()
2764 value_.string_ = const_cast<char*>(value.c_str()); in Value()
2770 value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(value.length())); in Value()
2776 value_.bool_ = value; in Value()
2790 value_ = other.value_; in Value()
2793 if (other.value_.string_ && other.allocated_) { in Value()
2796 decodePrefixedString(other.allocated_, other.value_.string_, in Value()
2798 value_.string_ = duplicateAndPrefixStringValue(str, len); in Value()
2801 value_.string_ = other.value_.string_; in Value()
2807 value_.map_ = new ObjectValues(*other.value_.map_); in Value()
2833 releaseStringValue(value_.string_); in ~Value()
2837 delete value_.map_; in ~Value()
2856 std::swap(value_, other.value_); in swapPayload()
2887 return value_.int_ < other.value_.int_; in operator <()
2889 return value_.uint_ < other.value_.uint_; in operator <()
2891 return value_.real_ < other.value_.real_; in operator <()
2893 return value_.bool_ < other.value_.bool_; in operator <()
2896 if ((value_.string_ == 0) || (other.value_.string_ == 0)) { in operator <()
2897 if (other.value_.string_) return true; in operator <()
2904 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); in operator <()
2905 decodePrefixedString(other.allocated_, other.value_.string_, &other_len, &other_str); in operator <()
2914 int delta = int(value_.map_->size() - other.value_.map_->size()); in operator <()
2917 return (*value_.map_) < (*other.value_.map_); in operator <()
2943 return value_.int_ == other.value_.int_; in operator ==()
2945 return value_.uint_ == other.value_.uint_; in operator ==()
2947 return value_.real_ == other.value_.real_; in operator ==()
2949 return value_.bool_ == other.value_.bool_; in operator ==()
2952 if ((value_.string_ == 0) || (other.value_.string_ == 0)) { in operator ==()
2953 return (value_.string_ == other.value_.string_); in operator ==()
2959 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); in operator ==()
2960 decodePrefixedString(other.allocated_, other.value_.string_, &other_len, &other_str); in operator ==()
2967 return value_.map_->size() == other.value_.map_->size() && in operator ==()
2968 (*value_.map_) == (*other.value_.map_); in operator ==()
2980 if (value_.string_ == 0) return 0; in asCString()
2983 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); in asCString()
2989 if (value_.string_ == 0) return false; in getString()
2991 decodePrefixedString(this->allocated_, this->value_.string_, &length, str); in getString()
3002 if (value_.string_ == 0) return ""; in asString()
3005 decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); in asString()
3009 return value_.bool_ ? "true" : "false"; in asString()
3011 return valueToString(value_.int_); in asString()
3013 return valueToString(value_.uint_); in asString()
3015 return valueToString(value_.real_); in asString()
3025 decodePrefixedString(allocated_, value_.string_, in asConstString()
3035 return Int(value_.int_); in asInt()
3038 return Int(value_.uint_); in asInt()
3040 JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt, maxInt), in asInt()
3042 return Int(value_.real_); in asInt()
3046 return value_.bool_ ? 1 : 0; in asInt()
3057 return UInt(value_.int_); in asUInt()
3060 return UInt(value_.uint_); in asUInt()
3062 JSON_ASSERT_MESSAGE(InRange(value_.real_, 0, maxUInt), in asUInt()
3064 return UInt(value_.real_); in asUInt()
3068 return value_.bool_ ? 1 : 0; in asUInt()
3080 return Int64(value_.int_); in asInt64()
3083 return Int64(value_.uint_); in asInt64()
3085 JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt64, maxInt64), in asInt64()
3087 return Int64(value_.real_); in asInt64()
3091 return value_.bool_ ? 1 : 0; in asInt64()
3102 return UInt64(value_.int_); in asUInt64()
3104 return UInt64(value_.uint_); in asUInt64()
3106 JSON_ASSERT_MESSAGE(InRange(value_.real_, 0, maxUInt64), in asUInt64()
3108 return UInt64(value_.real_); in asUInt64()
3112 return value_.bool_ ? 1 : 0; in asUInt64()
3139 return static_cast<double>(value_.int_); in asDouble()
3142 return static_cast<double>(value_.uint_); in asDouble()
3144 return integerToDouble(value_.uint_); in asDouble()
3147 return value_.real_; in asDouble()
3151 return value_.bool_ ? 1.0 : 0.0; in asDouble()
3161 return static_cast<float>(value_.int_); in asFloat()
3164 return static_cast<float>(value_.uint_); in asFloat()
3166 return integerToDouble(value_.uint_); in asFloat()
3169 return static_cast<float>(value_.real_); in asFloat()
3173 return value_.bool_ ? 1.0f : 0.0f; in asFloat()
3183 return value_.bool_; in asBool()
3187 return value_.int_ ? true : false; in asBool()
3189 return value_.uint_ ? true : false; in asBool()
3191 return value_.real_ ? true : false; in asBool()
3202 (type_ == booleanValue && value_.bool_ == false) || in isConvertibleTo()
3204 (type_ == arrayValue && value_.map_->size() == 0) || in isConvertibleTo()
3205 (type_ == objectValue && value_.map_->size() == 0) || in isConvertibleTo()
3209 (type_ == realValue && InRange(value_.real_, minInt, maxInt)) || in isConvertibleTo()
3213 (type_ == realValue && InRange(value_.real_, 0, maxUInt)) || in isConvertibleTo()
3242 if (!value_.map_->empty()) { in size()
3243 ObjectValues::const_iterator itLast = value_.map_->end(); in size()
3249 return ArrayIndex(value_.map_->size()); in size()
3273 value_.map_->clear(); in clear()
3292 value_.map_->erase(index); in resize()
3305 ObjectValues::iterator it = value_.map_->lower_bound(key); in operator []()
3306 if (it != value_.map_->end() && (*it).first == key) in operator []()
3310 it = value_.map_->insert(it, defaultValue); in operator []()
3328 ObjectValues::const_iterator it = value_.map_->find(key); in operator []()
3329 if (it == value_.map_->end()) in operator []()
3360 ObjectValues::iterator it = value_.map_->lower_bound(actualKey); in resolveReference()
3361 if (it != value_.map_->end() && (*it).first == actualKey) in resolveReference()
3365 it = value_.map_->insert(it, defaultValue); in resolveReference()
3380 ObjectValues::iterator it = value_.map_->lower_bound(actualKey); in resolveReference()
3381 if (it != value_.map_->end() && (*it).first == actualKey) in resolveReference()
3385 it = value_.map_->insert(it, defaultValue); in resolveReference()
3404 ObjectValues::const_iterator it = value_.map_->find(actualKey); in find()
3405 if (it == value_.map_->end()) return NULL; in find()
3468 ObjectValues::iterator it = value_.map_->find(actualKey); in removeMember()
3469 if (it == value_.map_->end()) in removeMember()
3472 value_.map_->erase(it); in removeMember()
3504 ObjectValues::iterator it = value_.map_->find(key); in removeIndex()
3505 if (it == value_.map_->end()) { in removeIndex()
3513 (*value_.map_)[key] = (*this)[i + 1]; in removeIndex()
3517 ObjectValues::iterator itLast = value_.map_->find(keyLast); in removeIndex()
3518 value_.map_->erase(itLast); in removeIndex()
3556 members.reserve(value_.map_->size()); in getMemberNames()
3557 ObjectValues::const_iterator it = value_.map_->begin(); in getMemberNames()
3558 ObjectValues::const_iterator itEnd = value_.map_->end(); in getMemberNames()
3603 return value_.int_ >= minInt && value_.int_ <= maxInt; in isInt()
3605 return value_.uint_ <= UInt(maxInt); in isInt()
3607 return value_.real_ >= minInt && value_.real_ <= maxInt && in isInt()
3608 IsIntegral(value_.real_); in isInt()
3618 return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt); in isUInt()
3620 return value_.uint_ <= maxUInt; in isUInt()
3622 return value_.real_ >= 0 && value_.real_ <= maxUInt && in isUInt()
3623 IsIntegral(value_.real_); in isUInt()
3636 return value_.uint_ <= UInt64(maxInt64); in isInt64()
3641 return value_.real_ >= double(minInt64) && in isInt64()
3642 value_.real_ < double(maxInt64) && IsIntegral(value_.real_); in isInt64()
3654 return value_.int_ >= 0; in isUInt64()
3661 return value_.real_ >= 0 && value_.real_ < maxUInt64AsDouble && in isUInt64()
3662 IsIntegral(value_.real_); in isUInt64()
3733 if (value_.map_) in begin()
3734 return const_iterator(value_.map_->begin()); in begin()
3746 if (value_.map_) in end()
3747 return const_iterator(value_.map_->end()); in end()
3759 if (value_.map_) in begin()
3760 return iterator(value_.map_->begin()); in begin()
3772 if (value_.map_) in end()
3773 return iterator(value_.map_->end()); in end()