Searched refs:test_npos (Results 1 - 10 of 10) sorted by relevance

/external/libcxx/test/std/strings/basic.string/string.modifiers/string_append/
H A Dstring_size_size.pass.cpp51 test_npos(S s, S str, typename S::size_type pos, S expected) function
129 test_npos(S(), S(), 0, S());
130 test_npos(S(), S(), 1, S());
131 test_npos(S(), S("12345"), 0, S("12345"));
132 test_npos(S(), S("12345"), 1, S("2345"));
133 test_npos(S(), S("12345"), 3, S("45"));
134 test_npos(S(), S("12345"), 5, S(""));
135 test_npos(S(), S("12345"), 6, S("not happening"));
H A DT_size_size.pass.cpp51 test_npos(S s, SV sv, typename S::size_type pos, S expected) function
132 test_npos(S(), SV(), 0, S());
133 test_npos(S(), SV(), 1, S());
134 test_npos(S(), SV("12345"), 0, S("12345"));
135 test_npos(S(), SV("12345"), 1, S("2345"));
136 test_npos(S(), SV("12345"), 3, S("45"));
137 test_npos(S(), SV("12345"), 5, S(""));
138 test_npos(S(), SV("12345"), 6, S("not happening"));
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_assign/
H A Dstring_size_size.pass.cpp51 test_npos(S s, S str, typename S::size_type pos, S expected) function
129 test_npos(S(), S(), 0, S());
130 test_npos(S(), S(), 1, S());
131 test_npos(S(), S("12345"), 0, S("12345"));
132 test_npos(S(), S("12345"), 1, S("2345"));
133 test_npos(S(), S("12345"), 3, S("45"));
134 test_npos(S(), S("12345"), 5, S(""));
135 test_npos(S(), S("12345"), 6, S("not happening"));
H A DT_size_size.pass.cpp50 test_npos(S s, SV sv, typename S::size_type pos, S expected) function
131 test_npos(S(), SV(), 0, S());
132 test_npos(S(), SV(), 1, S());
133 test_npos(S(), SV("12345"), 0, S("12345"));
134 test_npos(S(), SV("12345"), 1, S("2345"));
135 test_npos(S(), SV("12345"), 3, S("45"));
136 test_npos(S(), SV("12345"), 5, S(""));
137 test_npos(S(), SV("12345"), 6, S("not happening"));
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
H A Dsize_T_size_size.pass.cpp57 test_npos(S s, typename S::size_type pos1, SV sv, typename S::size_type pos2, S expected) function
1719 test_npos(S(""), 0, SV("12345678901234567890"), 0, S("12345678901234567890"));
1720 test_npos(S(""), 0, SV("12345678901234567890"), 1, S( "2345678901234567890"));
1721 test_npos(S(""), 0, SV("12345678901234567890"), 2, S( "345678901234567890"));
1722 test_npos(S(""), 0, SV("12345678901234567890"), 3, S( "45678901234567890"));
1723 test_npos(S(""), 0, SV("12345678901234567890"), 5, S( "678901234567890"));
1724 test_npos(S(""), 0, SV("12345678901234567890"), 10, S( "1234567890"));
1725 test_npos(S(""), 0, SV("12345678901234567890"), 21, S("can't happen"));
1726 test_npos(S("abcdefghijklmnopqrst"), 10, SV("12345"), 0, S("abcdefghij12345klmnopqrst"));
1727 test_npos(
[all...]
H A Dsize_string_size_size.pass.cpp56 test_npos(S s, typename S::size_type pos1, S str, typename S::size_type pos2, S expected) function
1717 test_npos(S(""), 0, S("12345678901234567890"), 0, S("12345678901234567890"));
1718 test_npos(S(""), 0, S("12345678901234567890"), 1, S( "2345678901234567890"));
1719 test_npos(S(""), 0, S("12345678901234567890"), 2, S( "345678901234567890"));
1720 test_npos(S(""), 0, S("12345678901234567890"), 3, S( "45678901234567890"));
1721 test_npos(S(""), 0, S("12345678901234567890"), 5, S( "678901234567890"));
1722 test_npos(S(""), 0, S("12345678901234567890"), 10, S( "1234567890"));
1723 test_npos(S(""), 0, S("12345678901234567890"), 21, S("can't happen"));
1724 test_npos(S("abcdefghijklmnopqrst"), 10, S("12345"), 0, S("abcdefghij12345klmnopqrst"));
1725 test_npos(
[all...]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
H A Dsize_size_T_size_size.pass.cpp69 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, function
5858 test_npos(S("abcdefghij"), 9, 1, SV("12345678901234567890"), 10, S("abcdefghi1234567890"));
5859 test_npos(S("abcdefghij"), 9, 1, SV("12345678901234567890"), 19, S("abcdefghi0"));
5860 test_npos(S("abcdefghij"), 9, 1, SV("12345678901234567890"), 20, S("abcdefghi"));
5861 test_npos(S("abcdefghij"), 9, 1, SV("12345678901234567890"), 20, S("abcdefghi"));
5862 test_npos(S("abcdefghij"), 9, 1, SV("12345678901234567890"), 21, S("can't happen"));
5863 test_npos(S("abcdefghij"), 9, 2, SV(""), 0, S("abcdefghi"));
5864 test_npos(S("abcdefghij"), 9, 2, SV(""), 1, S("can't happen"));
5865 test_npos(S("abcdefghij"), 9, 2, SV("12345"), 0, S("abcdefghi12345"));
5866 test_npos(
[all...]
H A Dsize_size_string_size_size.pass.cpp61 test_npos(S s, typename S::size_type pos1, typename S::size_type n1, function
5848 test_npos(S("abcdefghij"), 9, 1, S("12345678901234567890"), 10, S("abcdefghi1234567890"));
5849 test_npos(S("abcdefghij"), 9, 1, S("12345678901234567890"), 19, S("abcdefghi0"));
5850 test_npos(S("abcdefghij"), 9, 1, S("12345678901234567890"), 20, S("abcdefghi"));
5851 test_npos(S("abcdefghij"), 9, 1, S("12345678901234567890"), 20, S("abcdefghi"));
5852 test_npos(S("abcdefghij"), 9, 1, S("12345678901234567890"), 21, S("can't happen"));
5853 test_npos(S("abcdefghij"), 9, 2, S(""), 0, S("abcdefghi"));
5854 test_npos(S("abcdefghij"), 9, 2, S(""), 1, S("can't happen"));
5855 test_npos(S("abcdefghij"), 9, 2, S("12345"), 0, S("abcdefghi12345"));
5856 test_npos(
[all...]
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
H A Dsize_size_T_size_size.pass.cpp61 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, function
5837 test_npos(S(""), 0, 0, SV(""), 0, 0);
5838 test_npos(S(""), 0, 0, SV("abcde"), 0, -5);
5839 test_npos(S("abcde"), 0, 0, SV("abcdefghij"), 0, -10);
5840 test_npos(S("abcde"), 0, 0, SV("abcdefghij"), 1, -9);
5841 test_npos(S("abcde"), 0, 0, SV("abcdefghij"), 5, -5);
H A Dsize_size_string_size_size.pass.cpp58 test_npos(const S& s, typename S::size_type pos1, typename S::size_type n1, function
5833 test_npos(S(""), 0, 0, S(""), 0, 0);
5834 test_npos(S(""), 0, 0, S("abcde"), 0, -5);
5835 test_npos(S("abcde"), 0, 0, S("abcdefghij"), 0, -10);
5836 test_npos(S("abcde"), 0, 0, S("abcdefghij"), 1, -9);
5837 test_npos(S("abcde"), 0, 0, S("abcdefghij"), 5, -5);

Completed in 1328 milliseconds