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