Lines Matching refs:sp

207     StringPiece sp(abcd, -1);  in TestStringPiece()  local
208 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
211 sp=StringPiece(abcd, 5); in TestStringPiece()
212 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
215 sp=StringPiece(abcd, 2); in TestStringPiece()
216 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
220 sp=StringPiece(abcd, -1, 8); in TestStringPiece()
221 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
224 sp=StringPiece(abcd, 5, 8); in TestStringPiece()
225 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
228 sp=StringPiece(abcd, 2, 8); in TestStringPiece()
229 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
232 sp=StringPiece(abcd, 2, -1); in TestStringPiece()
233 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
242 sp=abcd.substr(-1); in TestStringPiece()
243 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
246 sp=abcd.substr(5); in TestStringPiece()
247 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
250 sp=abcd.substr(2); in TestStringPiece()
251 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
255 sp=abcd.substr(-1, 8); in TestStringPiece()
256 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
259 sp=abcd.substr(5, 8); in TestStringPiece()
260 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
263 sp=abcd.substr(2, 8); in TestStringPiece()
264 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
267 sp=abcd.substr(2, -1); in TestStringPiece()
268 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
272 sp=abcd; in TestStringPiece()
273 sp.clear(); in TestStringPiece()
274 if(!sp.empty() || sp.data()!=NULL || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
278 sp=abcd; in TestStringPiece()
279 sp.remove_prefix(-1); in TestStringPiece()
280 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
283 sp=abcd; in TestStringPiece()
284 sp.remove_prefix(2); in TestStringPiece()
285 if(sp.empty() || sp.data()!=abcdefg_chars+2 || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
288 sp=abcd; in TestStringPiece()
289 sp.remove_prefix(5); in TestStringPiece()
290 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
294 sp=abcd; in TestStringPiece()
295 sp.remove_suffix(-1); in TestStringPiece()
296 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=4 || sp.size()!=4) { in TestStringPiece()
299 sp=abcd; in TestStringPiece()
300 sp.remove_suffix(2); in TestStringPiece()
301 if(sp.empty() || sp.data()!=abcdefg_chars || sp.length()!=2 || sp.size()!=2) { in TestStringPiece()
304 sp=abcd; in TestStringPiece()
305 sp.remove_suffix(5); in TestStringPiece()
306 if(!sp.empty() || sp.length()!=0 || sp.size()!=0) { in TestStringPiece()
490 StringPiece sp(chStr.toStringPiece()); in TestCharString() local
491 sp.remove_prefix(4); in TestCharString()
492 chStr.append(sp, errorCode).append(chStr, errorCode); in TestCharString()