Lines Matching refs:STR
56 template<typename STR>
57 void CopyToStringT(const BasicStringPiece<STR>& self, STR* target) {
68 template<typename STR>
69 void AppendToStringT(const BasicStringPiece<STR>& self, STR* target) {
78 template<typename STR>
79 size_t copyT(const BasicStringPiece<STR>& self,
80 typename STR::value_type* buf,
84 memcpy(buf, self.data() + pos, ret * sizeof(typename STR::value_type));
92 template<typename STR>
93 size_t findT(const BasicStringPiece<STR>& self,
94 const BasicStringPiece<STR>& s,
97 return BasicStringPiece<STR>::npos;
99 typename BasicStringPiece<STR>::const_iterator result =
103 return xpos + s.size() <= self.size() ? xpos : BasicStringPiece<STR>::npos;
110 template<typename STR>
111 size_t findT(const BasicStringPiece<STR>& self,
112 typename STR::value_type c,
115 return BasicStringPiece<STR>::npos;
117 typename BasicStringPiece<STR>::const_iterator result =
120 static_cast<size_t>(result - self.begin()) : BasicStringPiece<STR>::npos;
127 template<typename STR>
128 size_t rfindT(const BasicStringPiece<STR>& self,
129 const BasicStringPiece<STR>& s,
132 return BasicStringPiece<STR>::npos;
137 typename BasicStringPiece<STR>::const_iterator last =
139 typename BasicStringPiece<STR>::const_iterator result =
142 static_cast<size_t>(result - self.begin()) : BasicStringPiece<STR>::npos;
149 template<typename STR>
150 size_t rfindT(const BasicStringPiece<STR>& self,
151 typename STR::value_type c,
154 return BasicStringPiece<STR>::npos;
163 return BasicStringPiece<STR>::npos;
215 template<typename STR>
216 size_t find_first_not_ofT(const BasicStringPiece<STR>& self,
217 typename STR::value_type c,
220 return BasicStringPiece<STR>::npos;
227 return BasicStringPiece<STR>::npos;
282 template<typename STR>
283 size_t find_last_not_ofT(const BasicStringPiece<STR>& self,
284 typename STR::value_type c,
287 return BasicStringPiece<STR>::npos;
295 return BasicStringPiece<STR>::npos;
304 template<typename STR>
305 BasicStringPiece<STR> substrT(const BasicStringPiece<STR>& self,
310 return BasicStringPiece<STR>(self.data() + pos, n);