Lines Matching refs:length

90         SizeType length;            //!< Length of the name.  member
128 …GenericPointer(const Ch* source, size_t length, Allocator* allocator = 0) : allocator_(allocator),… in allocator_()
129 Parse(source, length); in allocator_()
238 Ch *p = r.CopyFromRaw(*this, 1, token.length + 1);
239 std::memcpy(p, token.name, (token.length + 1) * sizeof(Ch));
241 r.tokens_[tokenCount_].length = token.length;
253 GenericPointer Append(const Ch* name, SizeType length, Allocator* allocator = 0) const {
254 Token token = { name, length, kPointerInvalidIndex };
291 SizeType length = static_cast<SizeType>(end - buffer); variable
292 buffer[length] = '\0';
295 Token token = { reinterpret_cast<Ch*>(buffer), length, index };
300 for (size_t i = 0; i <= length; i++)
302 Token token = { name, length, index };
364 tokens_[i].length != rhs.tokens_[i].length ||
365 …(tokens_[i].length != 0 && std::memcmp(tokens_[i].name, rhs.tokens_[i].name, sizeof(Ch)* tokens_[i…
397 if (tokens_[i].length != rhs.tokens_[i].length)
398 return tokens_[i].length < rhs.tokens_[i].length;
400 … if (int cmp = std::memcmp(tokens_[i].name, rhs.tokens_[i].name, sizeof(Ch) * tokens_[i].length))
457 if (v->IsArray() && t->name[0] == '-' && t->length == 1) {
482 …erIterator m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)));
484 … v->AddMember(ValueType(t->name, t->length, allocator).Move(), ValueType().Move(), allocator);
550 … m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)));
602 …erIterator m = v->FindMember(GenericValue<EncodingType>(GenericStringRef<Ch>(t->name, t->length)));
838 …erIterator 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()
881 nameBufferSize += t->length;
918 void Parse(const Ch* source, size_t length) { in Parse() argument
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()
944 if (i != length && source[i] != '/') { in Parse()
949 while (i < length) { in Parse()
956 while (i < length && source[i] != '/') { in Parse()
961 PercentDecodeStream is(&source[i], source + length); in Parse()
989 if (i < length) { in Parse()
1011 token->length = static_cast<SizeType>(name - token->name); in Parse()
1012 if (token->length == 0) in Parse()
1017 if (isNumber && token->length > 1 && token->name[0] == '0') in Parse()
1023 for (size_t j = 0; j < token->length; j++) { in Parse()
1037 RAPIDJSON_ASSERT(name <= nameBuffer_ + length); // Should not overflow buffer in Parse()
1065 for (size_t j = 0; j < t->length; j++) { in Stringify()