• Home
  • Raw
  • Download

Lines Matching refs:string_view

13     skstd::string_view empty;  in DEF_TEST()
18 skstd::string_view helloWorld(str); in DEF_TEST()
22 skstd::string_view hello(str, 5); in DEF_TEST()
26 skstd::string_view copy(hello); in DEF_TEST()
36 skstd::string_view empty(""); in DEF_TEST()
45 skstd::string_view xyz("xyz"); in DEF_TEST()
75 skstd::string_view str("abc"); in DEF_TEST()
76 skstd::string_view::iterator iter = str.begin(); in DEF_TEST()
86 skstd::string_view empty; in DEF_TEST()
91 skstd::string_view empty; in DEF_TEST()
97 skstd::string_view str("abc"); in DEF_TEST()
106 skstd::string_view str2("abcd"); in DEF_TEST()
135 skstd::string_view xyz("xyz"); in DEF_TEST()
161 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("abcdef") == 0); in DEF_TEST()
162 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("abcdefg") == skstd::string_view::npos); in DEF_TEST()
163 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("") == 0); in DEF_TEST()
164 REPORTER_ASSERT(r, skstd::string_view("").find("") == 0); in DEF_TEST()
165 REPORTER_ASSERT(r, skstd::string_view("").find("a") == skstd::string_view::npos); in DEF_TEST()
166 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("b") == 1); in DEF_TEST()
167 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("f") == 5); in DEF_TEST()
168 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("q") == skstd::string_view::npos); in DEF_TEST()
169 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("bcd") == 1); in DEF_TEST()
170 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("bcd", 2) == skstd::string_view::npos); in DEF_TEST()
171 REPORTER_ASSERT(r, skstd::string_view("abcdef").find("bce") == skstd::string_view::npos); in DEF_TEST()
172 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test") == 3); in DEF_TEST()
173 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test", 1) == 3); in DEF_TEST()
174 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test", 3) == 3); in DEF_TEST()
175 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test", 4) == 10); in DEF_TEST()
176 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test2") == 10); in DEF_TEST()
177 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").find("test3") == 17); in DEF_TEST()
178 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").contains("test")); in DEF_TEST()
179 REPORTER_ASSERT(r, skstd::string_view("ttttest1tttest2tttest3").contains("test3")); in DEF_TEST()
180 REPORTER_ASSERT(r, !skstd::string_view("ttttest1tttest2tttest3").contains("test4")); in DEF_TEST()
181 REPORTER_ASSERT(r, skstd::string_view("").contains("")); in DEF_TEST()
182 REPORTER_ASSERT(r, !skstd::string_view("").contains("a")); in DEF_TEST()
183 REPORTER_ASSERT(r, skstd::string_view("abcabcd").contains("abcd")); in DEF_TEST()
184 REPORTER_ASSERT(r, skstd::string_view("abc").contains("")); in DEF_TEST()
185 REPORTER_ASSERT(r, skstd::string_view("abc").contains("a")); in DEF_TEST()
186 REPORTER_ASSERT(r, skstd::string_view("abc").contains("b")); in DEF_TEST()
187 REPORTER_ASSERT(r, skstd::string_view("abc").contains("c")); in DEF_TEST()
188 REPORTER_ASSERT(r, skstd::string_view("abc").contains("ab")); in DEF_TEST()
189 REPORTER_ASSERT(r, skstd::string_view("abc").contains("bc")); in DEF_TEST()
190 REPORTER_ASSERT(r, !skstd::string_view("abc").contains("ac")); in DEF_TEST()
191 REPORTER_ASSERT(r, !skstd::string_view("abc").contains("cb")); in DEF_TEST()
192 REPORTER_ASSERT(r, !skstd::string_view("abc").contains("abcd")); in DEF_TEST()