Lines Matching refs:Ch

347     typedef CharType Ch; //!< character type of the string  typedef
417 operator const Ch *() const { return s; }
419 const Ch* const s; //!< plain CharType pointer
429 static const Ch emptyString[];
598 struct TypeHelper<ValueType, const typename ValueType::Ch*> {
599 typedef const typename ValueType::Ch* StringType;
608 struct TypeHelper<ValueType, std::basic_string<typename ValueType::Ch> > {
609 typedef std::basic_string<typename ValueType::Ch> StringType;
674 typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding.
675 typedef GenericStringRef<Ch> StringRefType; //!< Reference to a constant string
837 …GenericValue(const Ch* s, SizeType length) RAPIDJSON_NOEXCEPT : data_() { SetStringRaw(StringRef(s…
843 …GenericValue(const Ch* s, SizeType length, Allocator& allocator) : data_() { SetStringRaw(StringRe…
846 …GenericValue(const Ch*s, Allocator& allocator) : data_() { SetStringRaw(StringRef(s), allocator); }
852 …GenericValue(const std::basic_string<Ch>& s, Allocator& allocator) : data_() { SetStringRaw(String…
903 Allocator::Free(const_cast<Ch*>(GetStringPointer()));
1067 bool operator==(const Ch* rhs) const { return *this == GenericValue(StringRef(rhs)); }
1073 …bool operator==(const std::basic_string<Ch>& rhs) const { return *this == GenericValue(StringRef(r…
1089 bool operator!=(const Ch* rhs) const { return !(*this == rhs); }
1209 …nternal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >),(GenericValue&))…
1214 …nternal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >),(const GenericVa…
1262 …GenericValue& operator[](const std::basic_string<Ch>& name) { return (*this)[GenericValue(StringRe…
1263 …const GenericValue& operator[](const std::basic_string<Ch>& name) const { return (*this)[GenericVa…
1299 bool HasMember(const Ch* name) const { return FindMember(name) != MemberEnd(); }
1310 …bool HasMember(const std::basic_string<Ch>& name) const { return FindMember(name) != MemberEnd(); }
1337 MemberIterator FindMember(const Ch* name) {
1342 …ConstMemberIterator FindMember(const Ch* name) const { return const_cast<GenericValue&>(*this).Fin…
1373 …MemberIterator FindMember(const std::basic_string<Ch>& name) { return FindMember(GenericValue(Stri…
1374 …ConstMemberIterator FindMember(const std::basic_string<Ch>& name) const { return FindMember(Generi…
1418 … GenericValue& AddMember(GenericValue& name, std::basic_string<Ch>& value, Allocator& allocator) {
1535 bool RemoveMember(const Ch* name) {
1541 …bool RemoveMember(const std::basic_string<Ch>& name) { return RemoveMember(GenericValue(StringRef(…
1608 bool EraseMember(const Ch* name) {
1614 …bool EraseMember(const std::basic_string<Ch>& name) { return EraseMember(GenericValue(StringRef(na…
1853 const Ch* GetString() const { RAPIDJSON_ASSERT(IsString()); return DataString(data_); }
1868 … GenericValue& SetString(const Ch* s, SizeType length) { return SetString(StringRef(s, length)); }
1885 …GenericValue& SetString(const Ch* s, SizeType length, Allocator& allocator) { return SetString(Str…
1893 …GenericValue& SetString(const Ch* s, Allocator& allocator) { return SetString(StringRef(s), alloca…
1911 …GenericValue& SetString(const std::basic_string<Ch>& s, Allocator& allocator) { return SetString(S…
2040 const Ch* str;
2052 …enum { MaxChars = sizeof(static_cast<Flag*>(0)->payload) / sizeof(Ch), MaxSize = MaxChars - 1, Len…
2053 Ch str[MaxChars];
2056 inline void SetLength(SizeType len) { str[LenPos] = static_cast<Ch>(MaxSize - len); }
2107 static RAPIDJSON_FORCEINLINE const Ch* DataString(const Data& data) {
2108 return (data.f.flags & kInlineStrFlag) ? data.ss.str : RAPIDJSON_GETPOINTER(Ch, data.s.str);
2114 …RAPIDJSON_FORCEINLINE const Ch* GetStringPointer() const { return RAPIDJSON_GETPOINTER(Ch, data_.s…
2115 …RAPIDJSON_FORCEINLINE const Ch* SetStringPointer(const Ch* str) { return RAPIDJSON_SETPOINTER(Ch, …
2127 … int cmp = std::memcmp(DataString(s1), DataString(s2), sizeof(Ch) * (n1 < n2 ? n1 : n2));
2443 Ch* str = 0;
2451 str = static_cast<Ch *>(allocator.Malloc((s.length + 1) * sizeof(Ch)));
2454 std::memcpy(str, s, s.length * sizeof(Ch));
2474 const Ch* const str1 = GetString();
2475 const Ch* const str2 = rhs.GetString();
2478 return (std::memcmp(str1, str2, sizeof(Ch) * len1) == 0);
2501 … typedef typename Encoding::Ch Ch; //!< Character type derived from Encoding.
2685 GenericDocument& ParseInsitu(Ch* str) {
2694 GenericDocument& ParseInsitu(Ch* str) {
2708 GenericDocument& Parse(const typename SourceEncoding::Ch* str) {
2719 GenericDocument& Parse(const Ch* str) {
2726 GenericDocument& Parse(const Ch* str) {
2731 GenericDocument& Parse(const typename SourceEncoding::Ch* str, size_t length) {
2733 … MemoryStream ms(reinterpret_cast<const char*>(str), length * sizeof(typename SourceEncoding::Ch));
2740 GenericDocument& Parse(const Ch* str, size_t length) {
2744 GenericDocument& Parse(const Ch* str, size_t length) {
2750 GenericDocument& Parse(const std::basic_string<typename SourceEncoding::Ch>& str) {
2756 GenericDocument& Parse(const std::basic_string<Ch>& str) {
2760 GenericDocument& Parse(const std::basic_string<Ch>& str) {
2828 bool RawNumber(const Ch* str, SizeType length, bool copy) {
2836 bool String(const Ch* str, SizeType length, bool copy) {
2846 bool Key(const Ch* str, SizeType length, bool copy) { return String(str, length, copy); }
2963 typedef typename ValueType::Ch Ch;
2979 ValueType& operator[](const std::basic_string<Ch>& name) const { return value_[name]; }
2984 bool HasMember(const Ch* name) const { return value_.HasMember(name); }
2986 bool HasMember(const std::basic_string<Ch>& name) const { return value_.HasMember(name); }
2989 MemberIterator FindMember(const Ch* name) const { return value_.FindMember(name); }
2992 …MemberIterator FindMember(const std::basic_string<Ch>& name) const { return value_.FindMember(name…
2997 …GenericObject AddMember(ValueType& name, std::basic_string<Ch>& value, AllocatorType& allocator) c…
3010 bool RemoveMember(const Ch* name) const { return value_.RemoveMember(name); }
3012 bool RemoveMember(const std::basic_string<Ch>& name) const { return value_.RemoveMember(name); }
3018 bool EraseMember(const Ch* name) const { return value_.EraseMember(name); }
3020 …bool EraseMember(const std::basic_string<Ch>& name) const { return EraseMember(ValueType(StringRef…