• Home
  • Raw
  • Download

Lines Matching refs:sp

212     StringPiece sp(abcd, -1);  in TestStringPiece()  local
213 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
216 sp=StringPiece(abcd, 5); in TestStringPiece()
217 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
220 sp=StringPiece(abcd, 2); in TestStringPiece()
221 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
225 sp=StringPiece(abcd, -1, 8); in TestStringPiece()
226 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
229 sp=StringPiece(abcd, 5, 8); in TestStringPiece()
230 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
233 sp=StringPiece(abcd, 2, 8); in TestStringPiece()
234 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
237 sp=StringPiece(abcd, 2, -1); in TestStringPiece()
238 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
247 sp=abcd.substr(-1); in TestStringPiece()
248 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
251 sp=abcd.substr(5); in TestStringPiece()
252 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
255 sp=abcd.substr(2); in TestStringPiece()
256 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
260 sp=abcd.substr(-1, 8); in TestStringPiece()
261 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
264 sp=abcd.substr(5, 8); in TestStringPiece()
265 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
268 sp=abcd.substr(2, 8); in TestStringPiece()
269 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
272 sp=abcd.substr(2, -1); in TestStringPiece()
273 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
277 sp=abcd; in TestStringPiece()
278 sp.clear(); in TestStringPiece()
279 if(!sp.empty() || sp.data()!=NULL || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
283 sp=abcd; in TestStringPiece()
284 sp.remove_prefix(-1); in TestStringPiece()
285 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
288 sp=abcd; in TestStringPiece()
289 sp.remove_prefix(2); in TestStringPiece()
290 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
293 sp=abcd; in TestStringPiece()
294 sp.remove_prefix(5); in TestStringPiece()
295 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
299 sp=abcd; in TestStringPiece()
300 sp.remove_suffix(-1); in TestStringPiece()
301 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
304 sp=abcd; in TestStringPiece()
305 sp.remove_suffix(2); in TestStringPiece()
306 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
309 sp=abcd; in TestStringPiece()
310 sp.remove_suffix(5); in TestStringPiece()
311 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
495 StringPiece sp(chStr.toStringPiece()); in TestCharString() local
496 sp.remove_prefix(4); in TestCharString()
497 chStr.append(sp, errorCode).append(chStr, errorCode); in TestCharString()