Lines Matching refs:STR
57 template<typename STR>
58 void CopyToStringT(const BasicStringPiece<STR>& self, STR* target) {
73 template<typename STR>
74 void AppendToStringT(const BasicStringPiece<STR>& self, STR* target) {
87 template<typename STR>
88 size_t copyT(const BasicStringPiece<STR>& self,
89 typename STR::value_type* buf,
93 memcpy(buf, self.data() + pos, ret * sizeof(typename STR::value_type));
105 template<typename STR>
106 size_t findT(const BasicStringPiece<STR>& self,
107 const BasicStringPiece<STR>& s,
110 return BasicStringPiece<STR>::npos;
112 typename BasicStringPiece<STR>::const_iterator result =
116 return xpos + s.size() <= self.size() ? xpos : BasicStringPiece<STR>::npos;
127 template<typename STR>
128 size_t findT(const BasicStringPiece<STR>& self,
129 typename STR::value_type c,
132 return BasicStringPiece<STR>::npos;
134 typename BasicStringPiece<STR>::const_iterator result =
137 static_cast<size_t>(result - self.begin()) : BasicStringPiece<STR>::npos;
148 template<typename STR>
149 size_t rfindT(const BasicStringPiece<STR>& self,
150 const BasicStringPiece<STR>& s,
153 return BasicStringPiece<STR>::npos;
158 typename BasicStringPiece<STR>::const_iterator last =
160 typename BasicStringPiece<STR>::const_iterator result =
163 static_cast<size_t>(result - self.begin()) : BasicStringPiece<STR>::npos;
174 template<typename STR>
175 size_t rfindT(const BasicStringPiece<STR>& self,
176 typename STR::value_type c,
179 return BasicStringPiece<STR>::npos;
188 return BasicStringPiece<STR>::npos;
276 template<typename STR>
277 size_t find_first_not_ofT(const BasicStringPiece<STR>& self,
278 typename STR::value_type c,
281 return BasicStringPiece<STR>::npos;
288 return BasicStringPiece<STR>::npos;
391 template<typename STR>
392 size_t find_last_not_ofT(const BasicStringPiece<STR>& self,
393 typename STR::value_type c,
396 return BasicStringPiece<STR>::npos;
404 return BasicStringPiece<STR>::npos;
419 template<typename STR>
420 BasicStringPiece<STR> substrT(const BasicStringPiece<STR>& self,
425 return BasicStringPiece<STR>(self.data() + pos, n);