Lines Matching full:abcd
196 StringPiece abcd(abcdefg_chars, 4);
197 if(abcd.empty() || abcd.data()!=abcdefg_chars || abcd.length()!=4 || abcd.size()!=4) {
209 StringPiece sp(abcd, -1);
211 errln("StringPiece(abcd, -1) failed");
213 sp=StringPiece(abcd, 5);
215 errln("StringPiece(abcd, 5) failed");
217 sp=StringPiece(abcd, 2);
219 errln("StringPiece(abcd, -1) failed");
222 sp=StringPiece(abcd, -1, 8);
224 errln("StringPiece(abcd, -1, 8) failed");
226 sp=StringPiece(abcd, 5, 8);
228 errln("StringPiece(abcd, 5, 8) failed");
230 sp=StringPiece(abcd, 2, 8);
232 errln("StringPiece(abcd, -1) failed");
234 sp=StringPiece(abcd, 2, -1);
236 errln("StringPiece(abcd, 5, -1) failed");
244 sp=abcd.substr(-1);
246 errln("abcd.substr(-1) failed");
248 sp=abcd.substr(5);
250 errln("abcd.substr(5) failed");
252 sp=abcd.substr(2);
254 errln("abcd.substr(-1) failed");
257 sp=abcd.substr(-1, 8);
259 errln("abcd.substr(-1, 8) failed");
261 sp=abcd.substr(5, 8);
263 errln("abcd.substr(5, 8) failed");
265 sp=abcd.substr(2, 8);
267 errln("abcd.substr(-1) failed");
269 sp=abcd.substr(2, -1);
271 errln("abcd.substr(5, -1) failed");
274 sp=abcd;
277 errln("abcd.clear() failed");
280 sp=abcd;
283 errln("abcd.remove_prefix(-1) failed");
285 sp=abcd;
288 errln("abcd.remove_prefix(2) failed");
290 sp=abcd;
293 errln("abcd.remove_prefix(5) failed");
296 sp=abcd;
299 errln("abcd.remove_suffix(-1) failed");
301 sp=abcd;
304 errln("abcd.remove_suffix(2) failed");
306 sp=abcd;
309 errln("abcd.remove_suffix(5) failed");
318 StringPiece abcd("abcdefg", 4);
326 if(abc==abcd) {
327 errln("abc==abcd");
329 abcd.remove_suffix(1);
330 if(abc!=abcd) {
331 errln("abc!=abcd.remove_suffix(1)");