Lines Matching refs:Size
153 // The size of the range, i.e. how many tokens are in it.
154 size_t Size() const {
160 return Size() > 0;
165 assert(offset < Size());
170 // Equality is defined as having both the same size, and
177 if (Size() != other.Size()) {
186 assert(index >= 0 && static_cast<size_t>(index) < Size());
196 if (Size() < other.Size()) {
200 auto& smaller = Size() < other.Size() ? *this : other;
201 auto& greater = Size() < other.Size() ? other : *this;
242 assert(offset < Size());
244 if (length != std::string::npos && offset + length > Size()) {
245 length = Size() - offset;
308 new_token_list.push_back(string.substr(next_token_idx, tok.size()));
310 string_idx += tok.size();
313 size_t remaining = string.size() - string_idx;
336 // wildcard present). 0 means no match. If the size() tokens are returned.
383 if (larger.size() >= smaller.size()) {
411 assert(token_list_->size() > token_list->size() && "Nothing was actually removed!");