Lines Matching refs:npos
25 if (x != S::npos)
37 if (x != S::npos)
48 test(S(""), "abcde", 0, S::npos);
49 test(S(""), "abcdeabcde", 0, S::npos);
50 test(S(""), "abcdeabcdeabcdeabcde", 0, S::npos);
51 test(S(""), "", 1, S::npos);
52 test(S(""), "abcde", 1, S::npos);
53 test(S(""), "abcdeabcde", 1, S::npos);
54 test(S(""), "abcdeabcdeabcdeabcde", 1, S::npos);
57 test(S("abcde"), "abcdeabcde", 0, S::npos);
58 test(S("abcde"), "abcdeabcdeabcdeabcde", 0, S::npos);
60 test(S("abcde"), "abcde", 1, S::npos);
61 test(S("abcde"), "abcdeabcde", 1, S::npos);
62 test(S("abcde"), "abcdeabcdeabcdeabcde", 1, S::npos);
64 test(S("abcde"), "abcde", 2, S::npos);
65 test(S("abcde"), "abcdeabcde", 2, S::npos);
66 test(S("abcde"), "abcdeabcdeabcdeabcde", 2, S::npos);
68 test(S("abcde"), "abcde", 4, S::npos);
69 test(S("abcde"), "abcdeabcde", 4, S::npos);
70 test(S("abcde"), "abcdeabcdeabcdeabcde", 4, S::npos);
72 test(S("abcde"), "abcde", 5, S::npos);
73 test(S("abcde"), "abcdeabcde", 5, S::npos);
74 test(S("abcde"), "abcdeabcdeabcdeabcde", 5, S::npos);
75 test(S("abcde"), "", 6, S::npos);
76 test(S("abcde"), "abcde", 6, S::npos);
77 test(S("abcde"), "abcdeabcde", 6, S::npos);
78 test(S("abcde"), "abcdeabcdeabcdeabcde", 6, S::npos);
82 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 0, S::npos);
85 test(S("abcdeabcde"), "abcdeabcde", 1, S::npos);
86 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 1, S::npos);
89 test(S("abcdeabcde"), "abcdeabcde", 5, S::npos);
90 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 5, S::npos);
92 test(S("abcdeabcde"), "abcde", 9, S::npos);
93 test(S("abcdeabcde"), "abcdeabcde", 9, S::npos);
94 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 9, S::npos);
96 test(S("abcdeabcde"), "abcde", 10, S::npos);
97 test(S("abcdeabcde"), "abcdeabcde", 10, S::npos);
98 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 10, S::npos);
99 test(S("abcdeabcde"), "", 11, S::npos);
100 test(S("abcdeabcde"), "abcde", 11, S::npos);
101 test(S("abcdeabcde"), "abcdeabcde", 11, S::npos);
102 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", 11, S::npos);
110 test(S("abcdeabcdeabcdeabcde"), "abcdeabcdeabcdeabcde", 1, S::npos);
114 test(S("abcdeabcdeabcdeabcde"), "abcdeabcdeabcdeabcde", 10, S::npos);
116 test(S("abcdeabcdeabcdeabcde"), "abcde", 19, S::npos);
117 test(S("abcdeabcdeabcdeabcde"), "abcdeabcde", 19, S::npos);
118 test(S("abcdeabcdeabcdeabcde"), "abcdeabcdeabcdeabcde", 19, S::npos);
120 test(S("abcdeabcdeabcdeabcde"), "abcde", 20, S::npos);
121 test(S("abcdeabcdeabcdeabcde"), "abcdeabcde", 20, S::npos);
122 test(S("abcdeabcdeabcdeabcde"), "abcdeabcdeabcdeabcde", 20, S::npos);
123 test(S("abcdeabcdeabcdeabcde"), "", 21, S::npos);
124 test(S("abcdeabcdeabcdeabcde"), "abcde", 21, S::npos);
125 test(S("abcdeabcdeabcdeabcde"), "abcdeabcde", 21, S::npos);
126 test(S("abcdeabcdeabcdeabcde"), "abcdeabcdeabcdeabcde", 21, S::npos);
133 test(S(""), "abcde", S::npos);
134 test(S(""), "abcdeabcde", S::npos);
135 test(S(""), "abcdeabcdeabcdeabcde", S::npos);
138 test(S("abcde"), "abcdeabcde", S::npos);
139 test(S("abcde"), "abcdeabcdeabcdeabcde", S::npos);
143 test(S("abcdeabcde"), "abcdeabcdeabcdeabcde", S::npos);