Lines Matching refs:STRING_TYPE
37 template <typename STRING_TYPE> class BasicStringPiece;
164 template <typename STRING_TYPE> class BasicStringPiece {
168 typedef typename STRING_TYPE::value_type value_type;
185 length_((str == NULL) ? 0 : STRING_TYPE::traits_type::length(str)) {}
186 BasicStringPiece(const STRING_TYPE& str)
190 BasicStringPiece(const typename STRING_TYPE::const_iterator& begin,
191 const typename STRING_TYPE::const_iterator& end) {
223 length_ = str ? STRING_TYPE::traits_type::length(str) : 0;
237 int compare(const BasicStringPiece<STRING_TYPE>& x) const {
247 STRING_TYPE as_string() const {
249 return empty() ? STRING_TYPE() : STRING_TYPE(data(), size());
267 return STRING_TYPE::traits_type::compare(p, p2, N);
272 void CopyToString(STRING_TYPE* target) const {
276 void AppendToString(STRING_TYPE* target) const {
298 size_type find(const BasicStringPiece<STRING_TYPE>& s,
364 template <typename STRING_TYPE>
365 const typename BasicStringPiece<STRING_TYPE>::size_type
366 BasicStringPiece<STRING_TYPE>::npos =
367 typename BasicStringPiece<STRING_TYPE>::size_type(-1);