Lines Matching refs:size_type

165   typedef size_t size_type;
174 static const size_type npos;
186 BasicStringPiece(const value_type* offset, size_type len)
191 length_((end > begin) ? (size_type)(end - begin) : 0) {}
198 size_type size() const { return length_; }
199 size_type length() const { return length_; }
206 void set(const value_type* data, size_type len) {
215 value_type operator[](size_type i) const { return ptr_[i]; }
217 void remove_prefix(size_type n) {
222 void remove_suffix(size_type n) {
250 size_type max_size() const { return length_; }
251 size_type capacity() const { return length_; }
255 size_type N) {
269 size_type copy(value_type* buf, size_type n, size_type pos = 0) const {
287 size_type find(const BasicStringPiece<STRING_TYPE>& s,
288 size_type pos = 0) const {
291 size_type find(value_type c, size_type pos = 0) const {
296 size_type rfind(const BasicStringPiece& s,
297 size_type pos = BasicStringPiece::npos) const {
300 size_type rfind(value_type c, size_type pos = BasicStringPiece::npos) const {
305 size_type find_first_of(const BasicStringPiece& s,
306 size_type pos = 0) const {
309 size_type find_first_of(value_type c, size_type pos = 0) const {
314 size_type find_first_not_of(const BasicStringPiece& s,
315 size_type pos = 0) const {
318 size_type find_first_not_of(value_type c, size_type pos = 0) const {
323 size_type find_last_of(const BasicStringPiece& s,
324 size_type pos = BasicStringPiece::npos) const {
327 size_type find_last_of(value_type c,
328 size_type pos = BasicStringPiece::npos) const {
333 size_type find_last_not_of(const BasicStringPiece& s,
334 size_type pos = BasicStringPiece::npos) const {
337 size_type find_last_not_of(value_type c,
338 size_type pos = BasicStringPiece::npos) const {
343 BasicStringPiece substr(size_type pos,
344 size_type n = BasicStringPiece::npos) const {
350 size_type length_;
354 const typename BasicStringPiece<STRING_TYPE>::size_type
356 typename BasicStringPiece<STRING_TYPE>::size_type(-1);