Lines Matching refs:sv1
27 std::basic_string_view<CharT> sv1; in test1() local
31 sv1 = sv.substr(pos, n); in test1()
34 sv1 = sv.substr(pos, n); in test1()
43 assert (sv1.size() == rlen); in test1()
45 assert(sv[pos+i] == sv1[i]); in test1()
53 string_view_t sv1 ( s ); in test() local
55 test1(sv1, 0, 0); in test()
56 test1(sv1, 1, 0); in test()
57 test1(sv1, 20, 0); in test()
58 test1(sv1, sv1.size(), 0); in test()
60 test1(sv1, 0, 3); in test()
61 test1(sv1, 2, 3); in test()
62 test1(sv1, 100, 3); in test()
64 test1(sv1, 0, string_view_t::npos); in test()
65 test1(sv1, 2, string_view_t::npos); in test()
66 test1(sv1, sv1.size(), string_view_t::npos); in test()
68 test1(sv1, sv1.size() + 1, 0); in test()
69 test1(sv1, sv1.size() + 1, 1); in test()
70 test1(sv1, sv1.size() + 1, string_view_t::npos); in test()
98 constexpr std::string_view sv1 { "ABCDE", 5 }; in main() local
101 constexpr std::string_view sv2 = sv1.substr ( 0, 3 ); in main()
109 constexpr std::string_view sv2 = sv1.substr ( 3, 0 ); in main()
114 constexpr std::string_view sv2 = sv1.substr ( 3, 3 ); in main()