Lines Matching refs:Ch
71 typedef typename ValueType::Ch Ch; //!< Character type from Value typedef
89 …const Ch* name; //!< Name of the token. It has null character at the end but it can co…
105 …explicit GenericPointer(const Ch* source, Allocator* allocator = 0) : allocator_(allocator), ownAl… in allocator_()
116 …explicit GenericPointer(const std::basic_string<Ch>& source, Allocator* allocator = 0) : allocator… in allocator_()
128 …GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator),… in allocator_()
238 Ch *p = r.CopyFromRaw(*this, 1, token.length + 1);
239 std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch));
253 GenericPointer Append(const Ch* name, SizeType length, Allocator* allocator = 0) const {
265 …nternal::NotExpr<internal::IsSame<typename internal::RemoveConst<T>::Type, Ch> >), (GenericPointer…
277 GenericPointer Append(const std::basic_string<Ch>& name, Allocator* allocator = 0) const {
294 if (sizeof(Ch) == 1) {
295 Token token = { reinterpret_cast<Ch*>(buffer), length, index };
299 Ch name[21];
301 name[i] = static_cast<Ch>(buffer[i]);
365 …i].length != 0 && std::memcmp(tokens_[i].name, rhs.tokens_[i].name, sizeof(Ch)* tokens_[i].length)…
400 … if (int cmp = std::memcmp(tokens_[i].name, rhs.tokens_[i].name, sizeof(Ch) * tokens_[i].length))
482 …mberIterator m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)…
535 static const Ch kIdString[] = { 'i', 'd', '\0' };
550 … m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)));
602 …mberIterator m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)…
656 …ValueType& GetWithDefault(ValueType& root, const Ch* defaultValue, typename ValueType::AllocatorTy… in GetWithDefault()
664 …ValueType& GetWithDefault(ValueType& root, const std::basic_string<Ch>& defaultValue, typename Val… in GetWithDefault()
689 …gType, typename ValueType::AllocatorType, stackAllocator>& document, const Ch* defaultValue) const… in GetWithDefault()
696 …lueType::AllocatorType, stackAllocator>& document, const std::basic_string<Ch>& defaultValue) cons… in GetWithDefault()
736 …ValueType& Set(ValueType& root, const Ch* value, typename ValueType::AllocatorType& allocator) con… in Set()
742 …ValueType& Set(ValueType& root, const std::basic_string<Ch>& value, typename ValueType::AllocatorT… in Set()
771 …ncodingType, typename ValueType::AllocatorType, stackAllocator>& document, const Ch* value) const { in Set()
778 …me ValueType::AllocatorType, stackAllocator>& document, const std::basic_string<Ch>& value) const { in Set()
838 …mberIterator m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)… in Erase()
856 return v->EraseMember(GenericStringRef<Ch>(last->name, last->length)); in Erase()
875 …Ch* CopyFromRaw(const GenericPointer& rhs, size_t extraToken = 0, size_t extraNameBufferSize = 0) {
884 …cator_->Malloc(tokenCount_ * sizeof(Token) + (nameBufferSize + extraNameBufferSize) * sizeof(Ch)));
885 nameBuffer_ = reinterpret_cast<Ch *>(tokens_ + tokenCount_);
890 std::memcpy(nameBuffer_, rhs.nameBuffer_, nameBufferSize * sizeof(Ch));
906 bool NeedPercentEncode(Ch c) const { in NeedPercentEncode()
918 void Parse(const Ch* source, size_t length) { in Parse()
929 for (const Ch* s = source; s != source + length; s++) in Parse()
933 …ens_ = static_cast<Token *>(allocator_->Malloc(tokenCount_ * sizeof(Token) + length * sizeof(Ch))); in Parse()
934 Ch* name = nameBuffer_ = reinterpret_cast<Ch *>(tokens_ + tokenCount_); in Parse()
957 Ch c = source[i]; in Parse()
963 Ch* begin = os.PutBegin(); in Parse()
1066 Ch c = t->name[j]; in Stringify()
1098 typedef typename ValueType::Ch Ch; typedef
1105 …PercentDecodeStream(const Ch* source, const Ch* end) : src_(source), head_(source), end_(end), val… in PercentDecodeStream()
1107 Ch Take() { in Take()
1113 Ch c = 0; in Take()
1115 c = static_cast<Ch>(c << 4); in Take()
1116 Ch h = *src_; in Take()
1117 if (h >= '0' && h <= '9') c = static_cast<Ch>(c + h - '0'); in Take()
1118 else if (h >= 'A' && h <= 'F') c = static_cast<Ch>(c + h - 'A' + 10); in Take()
1119 else if (h >= 'a' && h <= 'f') c = static_cast<Ch>(c + h - 'a' + 10); in Take()
1133 const Ch* src_; //!< Current read position.
1134 const Ch* head_; //!< Original head of the string.
1135 const Ch* end_; //!< Past-the-end position.
1148 os_.Put(static_cast<typename OutputStream::Ch>(hexDigits[u >> 4])); in Put()
1149 os_.Put(static_cast<typename OutputStream::Ch>(hexDigits[u & 15])); in Put()
1157 Ch* nameBuffer_; //!< A buffer containing all names in tokens.
1224 …t, const GenericPointer<typename T::ValueType>& pointer, const typename T::Ch* defaultValue, typen… in GetValueByPointerWithDefault()
1230 …inter<typename T::ValueType>& pointer, const std::basic_string<typename T::Ch>& defaultValue, type… in GetValueByPointerWithDefault()
1247 …yPointerWithDefault(T& root, const CharType(&source)[N], const typename T::Ch* defaultValue, typen… in GetValueByPointerWithDefault()
1253 …t(T& root, const CharType(&source)[N], const std::basic_string<typename T::Ch>& defaultValue, type… in GetValueByPointerWithDefault()
1272 …ointer<typename DocumentType::ValueType>& pointer, const typename DocumentType::Ch* defaultValue) { in GetValueByPointerWithDefault()
1278 …umentType::ValueType>& pointer, const std::basic_string<typename DocumentType::Ch>& defaultValue) { in GetValueByPointerWithDefault()
1295 …ocumentType& document, const CharType(&source)[N], const typename DocumentType::Ch* defaultValue) { in GetValueByPointerWithDefault()
1301 …nt, const CharType(&source)[N], const std::basic_string<typename DocumentType::Ch>& defaultValue) { in GetValueByPointerWithDefault()
1325 …t, const GenericPointer<typename T::ValueType>& pointer, const typename T::Ch* value, typename T::… in SetValueByPointer()
1331 …inter<typename T::ValueType>& pointer, const std::basic_string<typename T::Ch>& value, typename T:… in SetValueByPointer()
1353 typename T::ValueType& SetValueByPointer(T& root, const CharType(&source)[N], const typename T::Ch*… in SetValueByPointer()
1359 …r(T& root, const CharType(&source)[N], const std::basic_string<typename T::Ch>& value, typename T:… in SetValueByPointer()
1383 …enericPointer<typename DocumentType::ValueType>& pointer, const typename DocumentType::Ch* value) { in SetValueByPointer()
1389 …ame DocumentType::ValueType>& pointer, const std::basic_string<typename DocumentType::Ch>& value) { in SetValueByPointer()
1411 …inter(DocumentType& document, const CharType(&source)[N], const typename DocumentType::Ch* value) { in SetValueByPointer()
1417 … document, const CharType(&source)[N], const std::basic_string<typename DocumentType::Ch>& value) { in SetValueByPointer()