Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 1121) sorted by relevance

12345678910>>...45

/external/libcxx/test/strings/basic.string/string.ops/string_find.first.of/
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
32 test(S(""), "", 0, 0, S::npos); in test0()
33 test(S(""), "irkhs", 0, 0, S::npos); in test0()
34 test(S(""), "kante", 0, 1, S::npos); in test0()
35 test(S(""), "oknlr", 0, 2, S::npos); in test0()
36 test(S(""), "pcdro", 0, 4, S::npos); in test0()
37 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
38 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
39 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
40 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
41 test(S(""), "", 0, S::npos); in test0()
42 test(S(""), "laenf", 0, S::npos); in test0()
43 test(S(""), "pqlnkmbdjo", 0, S::npos); in test0()
44 test(S(""), "qkamfogpnljdcshbreti", 0, S::npos); in test0()
45 test(S(""), "", 1, S::npos); in test0()
46 test(S(""), "bjaht", 1, S::npos); in test0()
47 test(S(""), "hjlcmgpket", 1, S::npos); in test0()
48 test(S(""), "htaobedqikfplcgjsmrn", 1, S::npos); in test0()
[all …]
Dchar_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
42 test(S(""), 'e', 0, S::npos); in main()
43 test(S(""), 'e', 1, S::npos); in main()
44 test(S("kitcj"), 'e', 0, S::npos); in main()
45 test(S("qkamf"), 'e', 1, S::npos); in main()
46 test(S("nhmko"), 'e', 2, S::npos); in main()
47 test(S("tpsaf"), 'e', 4, S::npos); in main()
48 test(S("lahfb"), 'e', 5, S::npos); in main()
49 test(S("irkhs"), 'e', 6, S::npos); in main()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
40 test(S(""), S(""), 0, S::npos); in test0()
41 test(S(""), S("laenf"), 0, S::npos); in test0()
42 test(S(""), S("pqlnkmbdjo"), 0, S::npos); in test0()
43 test(S(""), S("qkamfogpnljdcshbreti"), 0, S::npos); in test0()
44 test(S(""), S(""), 1, S::npos); in test0()
45 test(S(""), S("bjaht"), 1, S::npos); in test0()
46 test(S(""), S("hjlcmgpket"), 1, S::npos); in test0()
47 test(S(""), S("htaobedqikfplcgjsmrn"), 1, S::npos); in test0()
[all …]
/external/libcxx/test/strings/basic.string/string.ops/string_find/
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
34 test(S(""), "abcde", 0, 1, S::npos); in test0()
35 test(S(""), "abcde", 0, 2, S::npos); in test0()
36 test(S(""), "abcde", 0, 4, S::npos); in test0()
37 test(S(""), "abcde", 0, 5, S::npos); in test0()
39 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
40 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
41 test(S(""), "abcdeabcde", 0, 9, S::npos); in test0()
42 test(S(""), "abcdeabcde", 0, 10, S::npos); in test0()
44 test(S(""), "abcdeabcdeabcdeabcde", 0, 1, S::npos); in test0()
[all …]
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
37 if (x != S::npos) in test()
48 test(S(""), "abcde", 0, S::npos); in test0()
49 test(S(""), "abcdeabcde", 0, S::npos); in test0()
50 test(S(""), "abcdeabcdeabcdeabcde", 0, S::npos); in test0()
51 test(S(""), "", 1, S::npos); in test0()
52 test(S(""), "abcde", 1, S::npos); in test0()
53 test(S(""), "abcdeabcde", 1, S::npos); in test0()
54 test(S(""), "abcdeabcdeabcdeabcde", 1, S::npos); in test0()
57 test(S("abcde"), "abcdeabcde", 0, S::npos); in test0()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
41 test(S(""), S("abcde"), 0, S::npos); in test0()
42 test(S(""), S("abcdeabcde"), 0, S::npos); in test0()
43 test(S(""), S("abcdeabcdeabcdeabcde"), 0, S::npos); in test0()
44 test(S(""), S(""), 1, S::npos); in test0()
45 test(S(""), S("abcde"), 1, S::npos); in test0()
46 test(S(""), S("abcdeabcde"), 1, S::npos); in test0()
47 test(S(""), S("abcdeabcdeabcdeabcde"), 1, S::npos); in test0()
50 test(S("abcde"), S("abcdeabcde"), 0, S::npos); in test0()
[all …]
Dchar_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
42 test(S(""), 'c', 0, S::npos); in main()
43 test(S(""), 'c', 1, S::npos); in main()
47 test(S("abcde"), 'c', 4, S::npos); in main()
48 test(S("abcde"), 'c', 5, S::npos); in main()
49 test(S("abcde"), 'c', 6, S::npos); in main()
53 test(S("abcdeabcde"), 'c', 9, S::npos); in main()
54 test(S("abcdeabcde"), 'c', 10, S::npos); in main()
55 test(S("abcdeabcde"), 'c', 11, S::npos); in main()
[all …]
/external/libcxx/test/strings/basic.string/string.ops/string_find.last.of/
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
32 test(S(""), "", 0, 0, S::npos); in test0()
33 test(S(""), "irkhs", 0, 0, S::npos); in test0()
34 test(S(""), "kante", 0, 1, S::npos); in test0()
35 test(S(""), "oknlr", 0, 2, S::npos); in test0()
36 test(S(""), "pcdro", 0, 4, S::npos); in test0()
37 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
38 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
39 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
40 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
Dchar_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
42 test(S(""), 'm', 0, S::npos); in main()
43 test(S(""), 'm', 1, S::npos); in main()
44 test(S("kitcj"), 'm', 0, S::npos); in main()
45 test(S("qkamf"), 'm', 1, S::npos); in main()
47 test(S("tpsaf"), 'm', 4, S::npos); in main()
48 test(S("lahfb"), 'm', 5, S::npos); in main()
49 test(S("irkhs"), 'm', 6, S::npos); in main()
50 test(S("gmfhdaipsr"), 'm', 0, S::npos); in main()
[all …]
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
41 test(S(""), "", 0, S::npos); in test0()
42 test(S(""), "laenf", 0, S::npos); in test0()
43 test(S(""), "pqlnkmbdjo", 0, S::npos); in test0()
44 test(S(""), "qkamfogpnljdcshbreti", 0, S::npos); in test0()
45 test(S(""), "", 1, S::npos); in test0()
46 test(S(""), "bjaht", 1, S::npos); in test0()
47 test(S(""), "hjlcmgpket", 1, S::npos); in test0()
48 test(S(""), "htaobedqikfplcgjsmrn", 1, S::npos); in test0()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
40 test(S(""), S(""), 0, S::npos); in test0()
41 test(S(""), S("laenf"), 0, S::npos); in test0()
42 test(S(""), S("pqlnkmbdjo"), 0, S::npos); in test0()
43 test(S(""), S("qkamfogpnljdcshbreti"), 0, S::npos); in test0()
44 test(S(""), S(""), 1, S::npos); in test0()
45 test(S(""), S("bjaht"), 1, S::npos); in test0()
46 test(S(""), S("hjlcmgpket"), 1, S::npos); in test0()
47 test(S(""), S("htaobedqikfplcgjsmrn"), 1, S::npos); in test0()
[all …]
/external/libcxx/test/strings/basic.string/string.ops/string_find.first.not.of/
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
32 test(S(""), "", 0, 0, S::npos); in test0()
33 test(S(""), "irkhs", 0, 0, S::npos); in test0()
34 test(S(""), "kante", 0, 1, S::npos); in test0()
35 test(S(""), "oknlr", 0, 2, S::npos); in test0()
36 test(S(""), "pcdro", 0, 4, S::npos); in test0()
37 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
38 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
39 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
40 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
41 test(S(""), "", 0, S::npos); in test0()
42 test(S(""), "laenf", 0, S::npos); in test0()
43 test(S(""), "pqlnkmbdjo", 0, S::npos); in test0()
44 test(S(""), "qkamfogpnljdcshbreti", 0, S::npos); in test0()
45 test(S(""), "", 1, S::npos); in test0()
46 test(S(""), "bjaht", 1, S::npos); in test0()
47 test(S(""), "hjlcmgpket", 1, S::npos); in test0()
48 test(S(""), "htaobedqikfplcgjsmrn", 1, S::npos); in test0()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
40 test(S(""), S(""), 0, S::npos); in test0()
41 test(S(""), S("laenf"), 0, S::npos); in test0()
42 test(S(""), S("pqlnkmbdjo"), 0, S::npos); in test0()
43 test(S(""), S("qkamfogpnljdcshbreti"), 0, S::npos); in test0()
44 test(S(""), S(""), 1, S::npos); in test0()
45 test(S(""), S("bjaht"), 1, S::npos); in test0()
46 test(S(""), S("hjlcmgpket"), 1, S::npos); in test0()
47 test(S(""), S("htaobedqikfplcgjsmrn"), 1, S::npos); in test0()
[all …]
Dchar_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
42 test(S(""), 'q', 0, S::npos); in main()
43 test(S(""), 'q', 1, S::npos); in main()
48 test(S("lahfb"), 'q', 5, S::npos); in main()
49 test(S("irkhs"), 'q', 6, S::npos); in main()
54 test(S("eolhfgpjqk"), 'q', 10, S::npos); in main()
55 test(S("pcdrofikas"), 'q', 11, S::npos); in main()
60 test(S("hkbgspofltajcnedqmri"), 'q', 20, S::npos); in main()
61 test(S("oselktgbcapndfjihrmq"), 'q', 21, S::npos); in main()
[all …]
/external/libcxx/test/strings/basic.string/string.ops/string_find.last.not.of/
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
41 test(S(""), "", 0, S::npos); in test0()
42 test(S(""), "laenf", 0, S::npos); in test0()
43 test(S(""), "pqlnkmbdjo", 0, S::npos); in test0()
44 test(S(""), "qkamfogpnljdcshbreti", 0, S::npos); in test0()
45 test(S(""), "", 1, S::npos); in test0()
46 test(S(""), "bjaht", 1, S::npos); in test0()
47 test(S(""), "hjlcmgpket", 1, S::npos); in test0()
48 test(S(""), "htaobedqikfplcgjsmrn", 1, S::npos); in test0()
[all …]
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
32 test(S(""), "", 0, 0, S::npos); in test0()
33 test(S(""), "irkhs", 0, 0, S::npos); in test0()
34 test(S(""), "kante", 0, 1, S::npos); in test0()
35 test(S(""), "oknlr", 0, 2, S::npos); in test0()
36 test(S(""), "pcdro", 0, 4, S::npos); in test0()
37 test(S(""), "bnrpe", 0, 5, S::npos); in test0()
38 test(S(""), "jtdaefblso", 0, 0, S::npos); in test0()
39 test(S(""), "oselktgbca", 0, 1, S::npos); in test0()
40 test(S(""), "eqgaplhckj", 0, 5, S::npos); in test0()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
40 test(S(""), S(""), 0, S::npos); in test0()
41 test(S(""), S("laenf"), 0, S::npos); in test0()
42 test(S(""), S("pqlnkmbdjo"), 0, S::npos); in test0()
43 test(S(""), S("qkamfogpnljdcshbreti"), 0, S::npos); in test0()
44 test(S(""), S(""), 1, S::npos); in test0()
45 test(S(""), S("bjaht"), 1, S::npos); in test0()
46 test(S(""), S("hjlcmgpket"), 1, S::npos); in test0()
47 test(S(""), S("htaobedqikfplcgjsmrn"), 1, S::npos); in test0()
[all …]
/external/libcxx/test/strings/basic.string/string.ops/string_rfind/
Dpointer_size_size.pass.cpp25 if (x != S::npos) in test()
34 test(S(""), "abcde", 0, 1, S::npos); in test0()
35 test(S(""), "abcde", 0, 2, S::npos); in test0()
36 test(S(""), "abcde", 0, 4, S::npos); in test0()
37 test(S(""), "abcde", 0, 5, S::npos); in test0()
39 test(S(""), "abcdeabcde", 0, 1, S::npos); in test0()
40 test(S(""), "abcdeabcde", 0, 5, S::npos); in test0()
41 test(S(""), "abcdeabcde", 0, 9, S::npos); in test0()
42 test(S(""), "abcdeabcde", 0, 10, S::npos); in test0()
44 test(S(""), "abcdeabcdeabcdeabcde", 0, 1, S::npos); in test0()
[all …]
Dpointer_size.pass.cpp25 if (x != S::npos) in test()
37 if (x != S::npos) in test()
49 test(S(""), "abcde", 0, S::npos); in test0()
50 test(S(""), "abcdeabcde", 0, S::npos); in test0()
51 test(S(""), "abcdeabcdeabcdeabcde", 0, S::npos); in test0()
53 test(S(""), "abcde", 1, S::npos); in test0()
54 test(S(""), "abcdeabcde", 1, S::npos); in test0()
55 test(S(""), "abcdeabcdeabcdeabcde", 1, S::npos); in test0()
58 test(S("abcde"), "abcdeabcde", 0, S::npos); in test0()
59 test(S("abcde"), "abcdeabcdeabcdeabcde", 0, S::npos); in test0()
[all …]
Dstring_size.pass.cpp24 if (x != S::npos) in test()
33 if (x != S::npos) in test()
41 test(S(""), S("abcde"), 0, S::npos); in test0()
42 test(S(""), S("abcdeabcde"), 0, S::npos); in test0()
43 test(S(""), S("abcdeabcdeabcdeabcde"), 0, S::npos); in test0()
45 test(S(""), S("abcde"), 1, S::npos); in test0()
46 test(S(""), S("abcdeabcde"), 1, S::npos); in test0()
47 test(S(""), S("abcdeabcdeabcdeabcde"), 1, S::npos); in test0()
50 test(S("abcde"), S("abcdeabcde"), 0, S::npos); in test0()
51 test(S("abcde"), S("abcdeabcdeabcdeabcde"), 0, S::npos); in test0()
[all …]
Dchar_size.pass.cpp25 if (x != S::npos) in test()
34 if (x != S::npos) in test()
42 test(S(""), 'b', 0, S::npos); in main()
43 test(S(""), 'b', 1, S::npos); in main()
44 test(S("abcde"), 'b', 0, S::npos); in main()
50 test(S("abcdeabcde"), 'b', 0, S::npos); in main()
56 test(S("abcdeabcdeabcdeabcde"), 'b', 0, S::npos); in main()
63 test(S(""), 'b', S::npos); in main()
71 test(S(""), 'b', 0, S::npos); in main()
72 test(S(""), 'b', 1, S::npos); in main()
[all …]
/external/chromium_org/base/strings/
Dstring_piece_unittest.cc232 ASSERT_EQ(Piece::npos, TypeParam::npos); in TYPED_TEST()
235 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST()
238 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
239 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST()
240 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST()
247 ASSERT_EQ(a.find(g), Piece::npos); in TYPED_TEST()
249 ASSERT_EQ(d.find(b), Piece::npos); in TYPED_TEST()
250 ASSERT_EQ(e.find(b), Piece::npos); in TYPED_TEST()
251 ASSERT_EQ(d.find(b, 4), Piece::npos); in TYPED_TEST()
252 ASSERT_EQ(e.find(b, 7), Piece::npos); in TYPED_TEST()
[all …]
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
Dstring_piece.cc45 return npos; in find()
50 return xpos + s.length_ <= length_ ? xpos : npos; in find()
55 return npos; in find()
58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find()
63 return npos; in rfind()
70 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind()
75 return npos; in rfind()
83 return npos; in rfind()
106 return npos; in find_first_of()
119 return npos; in find_first_of()
[all …]

12345678910>>...45