Lines Matching refs:Piece
198 typedef BasicStringPiece<TypeParam> Piece; in TYPED_TEST() typedef
211 Piece e; in TYPED_TEST()
215 Piece f(temp); in TYPED_TEST()
234 ASSERT_EQ(Piece::npos, TypeParam::npos); in TYPED_TEST()
237 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST()
240 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
241 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST()
242 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
248 Piece g(not_found); in TYPED_TEST()
249 ASSERT_EQ(a.find(g), Piece::npos); in TYPED_TEST()
251 ASSERT_EQ(d.find(b), Piece::npos); in TYPED_TEST()
252 ASSERT_EQ(e.find(b), Piece::npos); in TYPED_TEST()
253 ASSERT_EQ(d.find(b, 4), Piece::npos); in TYPED_TEST()
254 ASSERT_EQ(e.find(b, 7), Piece::npos); in TYPED_TEST()
269 ASSERT_EQ(a.find('$'), Piece::npos); in TYPED_TEST()
270 ASSERT_EQ(a.find('\0'), Piece::npos); in TYPED_TEST()
277 ASSERT_EQ(a.find('b', 5), Piece::npos); in TYPED_TEST()
279 ASSERT_EQ(d.find('\0'), Piece::npos); in TYPED_TEST()
280 ASSERT_EQ(e.find('\0'), Piece::npos); in TYPED_TEST()
281 ASSERT_EQ(d.find('\0', 4), Piece::npos); in TYPED_TEST()
282 ASSERT_EQ(e.find('\0', 7), Piece::npos); in TYPED_TEST()
283 ASSERT_EQ(d.find('x'), Piece::npos); in TYPED_TEST()
284 ASSERT_EQ(e.find('x'), Piece::npos); in TYPED_TEST()
285 ASSERT_EQ(d.find('x', 4), Piece::npos); in TYPED_TEST()
286 ASSERT_EQ(e.find('x', 7), Piece::npos); in TYPED_TEST()
291 ASSERT_EQ(a.rfind(c, 22U), Piece::npos); in TYPED_TEST()
292 ASSERT_EQ(a.rfind(c, 1U), Piece::npos); in TYPED_TEST()
293 ASSERT_EQ(a.rfind(c, 0U), Piece::npos); in TYPED_TEST()
294 ASSERT_EQ(b.rfind(c), Piece::npos); in TYPED_TEST()
295 ASSERT_EQ(b.rfind(c, 0U), Piece::npos); in TYPED_TEST()
300 ASSERT_EQ(a.rfind(g), Piece::npos); in TYPED_TEST()
301 ASSERT_EQ(d.rfind(b), Piece::npos); in TYPED_TEST()
302 ASSERT_EQ(e.rfind(b), Piece::npos); in TYPED_TEST()
303 ASSERT_EQ(d.rfind(b, 4), Piece::npos); in TYPED_TEST()
304 ASSERT_EQ(e.rfind(b, 7), Piece::npos); in TYPED_TEST()
316 ASSERT_EQ(g.rfind('q'), Piece::npos); in TYPED_TEST()
319 ASSERT_EQ(g.rfind('o', 3), Piece::npos); in TYPED_TEST()
325 ASSERT_EQ(d.rfind('o'), Piece::npos); in TYPED_TEST()
326 ASSERT_EQ(e.rfind('o'), Piece::npos); in TYPED_TEST()
327 ASSERT_EQ(d.rfind('o', 4), Piece::npos); in TYPED_TEST()
328 ASSERT_EQ(e.rfind('o', 7), Piece::npos); in TYPED_TEST()
332 ASSERT_EQ(3U, Piece(one_two_three_four).find_first_of(comma_colon)); in TYPED_TEST()
337 ASSERT_EQ(a.find_first_of(b, 3), Piece::npos); in TYPED_TEST()
342 ASSERT_EQ(a.find_first_of(c, 26), Piece::npos); in TYPED_TEST()
345 ASSERT_EQ(a.find_first_of(f), Piece::npos); in TYPED_TEST()
346 ASSERT_EQ(f.find_first_of(a), Piece::npos); in TYPED_TEST()
348 ASSERT_EQ(a.find_first_of(d), Piece::npos); in TYPED_TEST()
349 ASSERT_EQ(a.find_first_of(e), Piece::npos); in TYPED_TEST()
350 ASSERT_EQ(d.find_first_of(b), Piece::npos); in TYPED_TEST()
351 ASSERT_EQ(e.find_first_of(b), Piece::npos); in TYPED_TEST()
352 ASSERT_EQ(d.find_first_of(d), Piece::npos); in TYPED_TEST()
353 ASSERT_EQ(e.find_first_of(d), Piece::npos); in TYPED_TEST()
354 ASSERT_EQ(d.find_first_of(e), Piece::npos); in TYPED_TEST()
355 ASSERT_EQ(e.find_first_of(e), Piece::npos); in TYPED_TEST()
359 ASSERT_EQ(b.find_first_not_of(a), Piece::npos); in TYPED_TEST()
360 ASSERT_EQ(c.find_first_not_of(a), Piece::npos); in TYPED_TEST()
366 ASSERT_EQ(d.find_first_not_of(a), Piece::npos); in TYPED_TEST()
367 ASSERT_EQ(e.find_first_not_of(a), Piece::npos); in TYPED_TEST()
368 ASSERT_EQ(d.find_first_not_of(d), Piece::npos); in TYPED_TEST()
369 ASSERT_EQ(e.find_first_not_of(d), Piece::npos); in TYPED_TEST()
370 ASSERT_EQ(d.find_first_not_of(e), Piece::npos); in TYPED_TEST()
371 ASSERT_EQ(e.find_first_not_of(e), Piece::npos); in TYPED_TEST()
374 Piece h(equals); in TYPED_TEST()
375 ASSERT_EQ(h.find_first_not_of('='), Piece::npos); in TYPED_TEST()
376 ASSERT_EQ(h.find_first_not_of('=', 3), Piece::npos); in TYPED_TEST()
383 ASSERT_EQ(d.find_first_not_of('x'), Piece::npos); in TYPED_TEST()
384 ASSERT_EQ(e.find_first_not_of('x'), Piece::npos); in TYPED_TEST()
385 ASSERT_EQ(d.find_first_not_of('\0'), Piece::npos); in TYPED_TEST()
386 ASSERT_EQ(e.find_first_not_of('\0'), Piece::npos); in TYPED_TEST()
390 Piece i(fifty_six); in TYPED_TEST()
391 ASSERT_EQ(h.find_last_of(a), Piece::npos); in TYPED_TEST()
401 ASSERT_EQ(a.find_last_of('b', 0), Piece::npos); in TYPED_TEST()
403 ASSERT_EQ(a.find_last_of('z', 24), Piece::npos); in TYPED_TEST()
406 ASSERT_EQ(f.find_last_of(a, 4), Piece::npos); in TYPED_TEST()
408 ASSERT_EQ(f.find_last_of(d), Piece::npos); in TYPED_TEST()
409 ASSERT_EQ(f.find_last_of(e), Piece::npos); in TYPED_TEST()
410 ASSERT_EQ(f.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
411 ASSERT_EQ(f.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
412 ASSERT_EQ(d.find_last_of(d), Piece::npos); in TYPED_TEST()
413 ASSERT_EQ(d.find_last_of(e), Piece::npos); in TYPED_TEST()
414 ASSERT_EQ(e.find_last_of(d), Piece::npos); in TYPED_TEST()
415 ASSERT_EQ(e.find_last_of(e), Piece::npos); in TYPED_TEST()
416 ASSERT_EQ(d.find_last_of(f), Piece::npos); in TYPED_TEST()
417 ASSERT_EQ(e.find_last_of(f), Piece::npos); in TYPED_TEST()
418 ASSERT_EQ(d.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
419 ASSERT_EQ(d.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
420 ASSERT_EQ(e.find_last_of(d, 4), Piece::npos); in TYPED_TEST()
421 ASSERT_EQ(e.find_last_of(e, 4), Piece::npos); in TYPED_TEST()
422 ASSERT_EQ(d.find_last_of(f, 4), Piece::npos); in TYPED_TEST()
423 ASSERT_EQ(e.find_last_of(f, 4), Piece::npos); in TYPED_TEST()
427 ASSERT_EQ(b.find_last_not_of(a), Piece::npos); in TYPED_TEST()
428 ASSERT_EQ(b.find_last_not_of(b), Piece::npos); in TYPED_TEST()
432 ASSERT_EQ(a.find_last_not_of(b, 2), Piece::npos); in TYPED_TEST()
438 ASSERT_EQ(d.find_last_not_of(d), Piece::npos); in TYPED_TEST()
439 ASSERT_EQ(d.find_last_not_of(e), Piece::npos); in TYPED_TEST()
440 ASSERT_EQ(e.find_last_not_of(d), Piece::npos); in TYPED_TEST()
441 ASSERT_EQ(e.find_last_not_of(e), Piece::npos); in TYPED_TEST()
442 ASSERT_EQ(d.find_last_not_of(f), Piece::npos); in TYPED_TEST()
443 ASSERT_EQ(e.find_last_not_of(f), Piece::npos); in TYPED_TEST()
444 ASSERT_EQ(d.find_last_not_of(d, 4), Piece::npos); in TYPED_TEST()
445 ASSERT_EQ(d.find_last_not_of(e, 4), Piece::npos); in TYPED_TEST()
446 ASSERT_EQ(e.find_last_not_of(d, 4), Piece::npos); in TYPED_TEST()
447 ASSERT_EQ(e.find_last_not_of(e, 4), Piece::npos); in TYPED_TEST()
448 ASSERT_EQ(d.find_last_not_of(f, 4), Piece::npos); in TYPED_TEST()
449 ASSERT_EQ(e.find_last_not_of(f, 4), Piece::npos); in TYPED_TEST()
452 ASSERT_EQ(h.find_last_not_of('='), Piece::npos); in TYPED_TEST()
455 ASSERT_EQ(h.find_last_not_of('=', 2), Piece::npos); in TYPED_TEST()
458 ASSERT_EQ(d.find_last_not_of('x'), Piece::npos); in TYPED_TEST()
459 ASSERT_EQ(e.find_last_not_of('x'), Piece::npos); in TYPED_TEST()
460 ASSERT_EQ(d.find_last_not_of('\0'), Piece::npos); in TYPED_TEST()
461 ASSERT_EQ(e.find_last_not_of('\0'), Piece::npos); in TYPED_TEST()