Lines Matching refs:STRING_TYPE
35 template <typename STRING_TYPE> class BasicStringPiece;
88 template <typename STRING_TYPE> class BasicStringPiece {
92 typedef typename STRING_TYPE::value_type value_type;
109 length_((str == NULL) ? 0 : STRING_TYPE::traits_type::length(str)) {}
110 BasicStringPiece(const STRING_TYPE& str)
114 BasicStringPiece(const typename STRING_TYPE::const_iterator& begin,
115 const typename STRING_TYPE::const_iterator& end) {
142 length_ = str ? STRING_TYPE::traits_type::length(str) : 0;
156 int compare(const BasicStringPiece<STRING_TYPE>& x) const {
166 STRING_TYPE as_string() const {
168 return empty() ? STRING_TYPE() : STRING_TYPE(data(), size());
186 return STRING_TYPE::traits_type::compare(p, p2, N);
191 void CopyToString(STRING_TYPE* target) const {
195 void AppendToString(STRING_TYPE* target) const {
217 size_type find(const BasicStringPiece<STRING_TYPE>& s,
283 template <typename STRING_TYPE>
284 const typename BasicStringPiece<STRING_TYPE>::size_type
285 BasicStringPiece<STRING_TYPE>::npos =
286 typename BasicStringPiece<STRING_TYPE>::size_type(-1);