Lines Matching refs:rfind
219 ASSERT_EQ(a.rfind(b), 0U); in TEST()
220 ASSERT_EQ(a.rfind(b, 1), 0U); in TEST()
221 ASSERT_EQ(a.rfind(c), 23U); in TEST()
222 ASSERT_EQ(a.rfind(c, 22U), StringPiece::npos); in TEST()
223 ASSERT_EQ(a.rfind(c, 1U), StringPiece::npos); in TEST()
224 ASSERT_EQ(a.rfind(c, 0U), StringPiece::npos); in TEST()
225 ASSERT_EQ(b.rfind(c), StringPiece::npos); in TEST()
226 ASSERT_EQ(b.rfind(c, 0U), StringPiece::npos); in TEST()
227 ASSERT_EQ(a.rfind(d), (size_t) a.as_string().rfind(std::string())); in TEST()
228 ASSERT_EQ(a.rfind(e), a.as_string().rfind(std::string())); in TEST()
229 ASSERT_EQ(a.rfind(d, 12), 12U); in TEST()
230 ASSERT_EQ(a.rfind(e, 17), 17U); in TEST()
231 ASSERT_EQ(a.rfind(g), StringPiece::npos); in TEST()
232 ASSERT_EQ(d.rfind(b), StringPiece::npos); in TEST()
233 ASSERT_EQ(e.rfind(b), StringPiece::npos); in TEST()
234 ASSERT_EQ(d.rfind(b, 4), StringPiece::npos); in TEST()
235 ASSERT_EQ(e.rfind(b, 7), StringPiece::npos); in TEST()
237 ASSERT_EQ(d.rfind(d, 4), std::string().rfind(std::string())); in TEST()
238 ASSERT_EQ(e.rfind(d, 7), std::string().rfind(std::string())); in TEST()
239 ASSERT_EQ(d.rfind(e, 4), std::string().rfind(std::string())); in TEST()
240 ASSERT_EQ(e.rfind(e, 7), std::string().rfind(std::string())); in TEST()
241 ASSERT_EQ(d.rfind(d), std::string().rfind(std::string())); in TEST()
242 ASSERT_EQ(e.rfind(d), std::string().rfind(std::string())); in TEST()
243 ASSERT_EQ(d.rfind(e), std::string().rfind(std::string())); in TEST()
244 ASSERT_EQ(e.rfind(e), std::string().rfind(std::string())); in TEST()
246 ASSERT_EQ(g.rfind('o'), 8U); in TEST()
247 ASSERT_EQ(g.rfind('q'), StringPiece::npos); in TEST()
248 ASSERT_EQ(g.rfind('o', 8), 8U); in TEST()
249 ASSERT_EQ(g.rfind('o', 7), 4U); in TEST()
250 ASSERT_EQ(g.rfind('o', 3), StringPiece::npos); in TEST()
251 ASSERT_EQ(f.rfind('\0'), 3U); in TEST()
252 ASSERT_EQ(f.rfind('\0', 12), 3U); in TEST()
253 ASSERT_EQ(f.rfind('3'), 2U); in TEST()
254 ASSERT_EQ(f.rfind('5'), 5U); in TEST()
256 ASSERT_EQ(d.rfind('o'), StringPiece::npos); in TEST()
257 ASSERT_EQ(e.rfind('o'), StringPiece::npos); in TEST()
258 ASSERT_EQ(d.rfind('o', 4), StringPiece::npos); in TEST()
259 ASSERT_EQ(e.rfind('o', 7), StringPiece::npos); in TEST()