Searched defs:npos (Results 1 - 2 of 2) sorted by relevance

/art/runtime/base/
H A Dstringpiece.cc36 return npos;
41 return xpos + s.length_ <= static_cast<size_type>(length_) ? xpos : npos;
55 return npos;
58 return result != ptr_ + length_ ? result - ptr_ : npos;
62 if (length_ < s.length_) return npos;
68 return result != last ? result - ptr_ : npos;
72 if (length_ <= 0) return npos;
79 return npos;
88 const StringPiece::size_type StringPiece::npos = size_type(-1); member in class:art::StringPiece
H A Dstringpiece.h131 static const size_type npos; member in class:art::StringPiece
152 size_type rfind(const StringPiece& s, size_type pos = npos) const;
153 size_type rfind(char c, size_type pos = npos) const;
155 StringPiece substr(size_type pos, size_type n = npos) const;

Completed in 55 milliseconds