Lines Matching refs:BasicStringPiece
161 template <typename STRING_TYPE> class BasicStringPiece {
179 constexpr BasicStringPiece() : ptr_(NULL), length_(0) {} in BasicStringPiece() function
184 constexpr BasicStringPiece(const value_type* str) in BasicStringPiece() function
186 BasicStringPiece(const STRING_TYPE& str) in BasicStringPiece() function
188 constexpr BasicStringPiece(const value_type* offset, size_type len) in BasicStringPiece() function
190 BasicStringPiece(const typename STRING_TYPE::const_iterator& begin, in BasicStringPiece() function
252 constexpr int compare(BasicStringPiece x) const noexcept { in compare()
297 constexpr bool starts_with(BasicStringPiece x) const noexcept { in starts_with()
304 constexpr bool ends_with(BasicStringPiece x) const noexcept { in ends_with()
312 size_type find(const BasicStringPiece<STRING_TYPE>& s,
321 size_type rfind(const BasicStringPiece& s,
322 size_type pos = BasicStringPiece::npos) const {
325 size_type rfind(value_type c, size_type pos = BasicStringPiece::npos) const {
330 size_type find_first_of(const BasicStringPiece& s,
339 size_type find_first_not_of(const BasicStringPiece& s,
348 size_type find_last_of(const BasicStringPiece& s,
349 size_type pos = BasicStringPiece::npos) const {
353 size_type pos = BasicStringPiece::npos) const {
358 size_type find_last_not_of(const BasicStringPiece& s,
359 size_type pos = BasicStringPiece::npos) const {
363 size_type pos = BasicStringPiece::npos) const {
368 BasicStringPiece substr(size_type pos,
369 size_type n = BasicStringPiece::npos) const {
379 const typename BasicStringPiece<STRING_TYPE>::size_type
380 BasicStringPiece<STRING_TYPE>::npos =
381 typename BasicStringPiece<STRING_TYPE>::size_type(-1);
385 extern template class BASE_EXPORT BasicStringPiece<std::string>;
386 extern template class BASE_EXPORT BasicStringPiece<string16>;