Lines Matching refs:tokenCount_
98 …0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in allocator_()
105 …0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in allocator_()
116 …0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in allocator_()
128 …0) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in allocator_()
154 …, ownAllocator_(), nameBuffer_(), tokens_(const_cast<Token*>(tokens)), tokenCount_(tokenCount), pa… in GenericPointer()
157 …inter& rhs) : allocator_(), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in GenericPointer()
162 …r) : allocator_(allocator), ownAllocator_(), nameBuffer_(), tokens_(), tokenCount_(), parseErrorOf… in GenericPointer()
180 tokenCount_ = rhs.tokenCount_;
204 internal::Swap(tokenCount_, other.tokenCount_); in Swap()
240 r.tokens_[tokenCount_].name = p;
241 r.tokens_[tokenCount_].length = token.length;
242 r.tokens_[tokenCount_].index = token.index;
347 size_t GetTokenCount() const { return tokenCount_; } in GetTokenCount()
359 if (!IsValid() || !rhs.IsValid() || tokenCount_ != rhs.tokenCount_)
362 for (size_t i = 0; i < tokenCount_; i++) {
390 if (tokenCount_ != rhs.tokenCount_)
391 return tokenCount_ < rhs.tokenCount_;
393 for (size_t i = 0; i < tokenCount_; i++) {
456 for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) {
540 for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) {
598 for (const Token *t = tokens_; t != tokens_ + tokenCount_; ++t) {
829 if (tokenCount_ == 0) // Cannot erase the root in Erase()
833 const Token* last = tokens_ + (tokenCount_ - 1); in Erase()
879 size_t nameBufferSize = rhs.tokenCount_; // null terminators for tokens
880 for (Token *t = rhs.tokens_; t != rhs.tokens_ + rhs.tokenCount_; ++t)
883 tokenCount_ = rhs.tokenCount_ + extraToken;
884 …tokens_ = static_cast<Token *>(allocator_->Malloc(tokenCount_ * sizeof(Token) + (nameBufferSize + …
885 nameBuffer_ = reinterpret_cast<Ch *>(tokens_ + tokenCount_);
886 if (rhs.tokenCount_ > 0) {
887 std::memcpy(tokens_, rhs.tokens_, rhs.tokenCount_ * sizeof(Token));
895 for (Token *t = tokens_; t != tokens_ + rhs.tokenCount_; ++t)
928 tokenCount_ = 0; in Parse()
931 tokenCount_++; in Parse()
933 …Token* token = tokens_ = static_cast<Token *>(allocator_->Malloc(tokenCount_ * sizeof(Token) + len… in Parse()
934 Ch* name = nameBuffer_ = reinterpret_cast<Ch *>(tokens_ + tokenCount_); in Parse()
1045 tokenCount_ = 0; in Parse()
1063 for (Token *t = tokens_; t != tokens_ + tokenCount_; ++t) { in Stringify()
1159 size_t tokenCount_; //!< Number of tokens in tokens_. variable