Lines Matching refs:size_type
36 int StringPiece::copy(char* buf, size_type n, size_type pos) const {
42 int StringPiece::find(const StringPiece& s, size_type pos) const {
43 if (length_ < 0 || pos > static_cast<size_type>(length_))
48 const size_type xpos = result - ptr_;
52 int StringPiece::find(char c, size_type pos) const {
53 if (length_ <= 0 || pos >= static_cast<size_type>(length_)) {
60 int StringPiece::rfind(const StringPiece& s, size_type pos) const {
70 int StringPiece::rfind(char c, size_type pos) const {
72 for (int i = min(pos, static_cast<size_type>(length_ - 1));
81 StringPiece StringPiece::substr(size_type pos, size_type n) const {
87 const StringPiece::size_type StringPiece::npos = size_type(-1);