Lines Matching refs:length_
50 StringPiece() : ptr_(nullptr), length_(0) { } in StringPiece()
52 : ptr_(str), length_((str == nullptr) ? 0 : strlen(str)) { } in StringPiece()
54 : ptr_(str.data()), length_(str.size()) { } in StringPiece()
55 StringPiece(const char* offset, size_t len) : ptr_(offset), length_(len) { } in StringPiece()
62 size_type size() const { return length_; } in size()
63 size_type length() const { return length_; } in length()
64 bool empty() const { return length_ == 0; } in empty()
68 length_ = 0; in clear()
72 length_ = len; in set()
77 length_ = strlen(str); in set()
79 length_ = 0; in set()
84 length_ = len; in set()
97 length_ -= n; in remove_prefix()
101 length_ -= n; in remove_suffix()
123 return ((length_ >= x.length_) && in starts_with()
124 (memcmp(ptr_, x.ptr_, x.length_) == 0)); in starts_with()
129 return ((length_ >= x.length_) && in ends_with()
130 (memcmp(ptr_ + (length_-x.length_), x.ptr_, x.length_) == 0)); in ends_with()
134 iterator end() const { return ptr_ + length_; } in end()
136 return const_reverse_iterator(ptr_ + length_); in rbegin()
155 size_type length_; variable