Lines Matching refs:size_type

32   typedef size_t size_type;
43 static const size_type npos;
54 StringPiece(const char* offset, size_type len)
62 size_type size() const { return length_; }
63 size_type length() const { return length_; }
70 void set(const char* data, size_type len) {
78 void set(const void* data, size_type len) {
83 char operator[](size_type i) const { return ptr_[i]; }
85 void remove_prefix(size_type n) {
90 void remove_suffix(size_type n) {
133 size_type max_size() const { return length_; }
134 size_type capacity() const { return length_; }
136 size_type copy(char* buf, size_type n, size_type pos = 0) const;
138 size_type find(const StringPiece& s, size_type pos = 0) const;
139 size_type find(char c, size_type pos = 0) const;
140 size_type rfind(const StringPiece& s, size_type pos = npos) const;
141 size_type rfind(char c, size_type pos = npos) const;
143 size_type find_first_of(const StringPiece& s, size_type pos = 0) const;
144 size_type find_first_of(char c, size_type pos = 0) const {
147 size_type find_first_not_of(const StringPiece& s, size_type pos = 0) const;
148 size_type find_first_not_of(char c, size_type pos = 0) const;
149 size_type find_last_of(const StringPiece& s, size_type pos = npos) const;
150 size_type find_last_of(char c, size_type pos = npos) const {
153 size_type find_last_not_of(const StringPiece& s, size_type pos = npos) const;
154 size_type find_last_not_of(char c, size_type pos = npos) const;
156 StringPiece substr(size_type pos, size_type n = npos) const;
158 static int wordmemcmp(const char* p, const char* p2, size_type N) {
164 size_type length_;