Home
last modified time | relevance | path

Searched +full:- +full:sv (Results 1 – 25 of 1070) sorted by relevance

12345678910>>...43

/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_T_size_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
30 return -1; in sign()
34 template <class S, class SV>
37 SV sv, typename S::size_type pos2, typename S::size_type n2, int x) in test() argument
39 static_assert((!std::is_same<S, SV>::value), ""); in test()
40 if (pos1 <= s.size() && pos2 <= sv.size()) in test()
41 assert(sign(s.compare(pos1, n1, sv, pos2, n2)) == sign(x)); in test()
47 TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv, pos2, n2); in test()
[all …]
Dsize_size_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // int compare(size_type pos1, size_type n1, basic_string_view sv) const;
26 return -1; in sign()
30 template <class S, class SV>
33 SV sv, int x) in test() argument
36 assert(sign(s.compare(pos1, n1, sv)) == sign(x)); in test()
42 TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv); in test()
53 template <class S, class SV>
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
Dsize_size_T_size_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
31 return -1; in sign()
35 template <class S, class SV>
38 SV sv, typename S::size_type pos2, typename S::size_type n2, int x) in test() argument
40 static_assert((!std::is_same<S, SV>::value), ""); in test()
41 if (pos1 <= s.size() && pos2 <= sv.size()) in test()
42 assert(sign(s.compare(pos1, n1, sv, pos2, n2)) == sign(x)); in test()
48 TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv, pos2, n2); in test()
53 assert(pos1 > s.size() || pos2 > sv.size()); in test()
[all …]
Dsize_size_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // int compare(size_type pos1, size_type n1, basic_string_vew sv) const;
27 return -1; in sign()
31 template <class S, class SV>
34 SV sv, int x) in test() argument
37 assert(sign(s.compare(pos1, n1, sv)) == sign(x)); in test()
43 TEST_IGNORE_NODISCARD s.compare(pos1, n1, sv); in test()
54 template <class S, class SV>
57 test(S(""), 0, 0, SV(""), 0); in test0()
[all …]
/external/pigweed/pw_tokenizer/pw_tokenizer_private/
Dvarint_decoding_test_data.h7 // https://www.apache.org/licenses/LICENSE-2.0
15 // AUTOGENERATED - DO NOT EDIT
26 // clang-format off
32 TestCase("%d", "0", "%u", "0", "\x00"sv),
33 TestCase("%d", "-32768", "%u", "4294934528", "\xff\xff\x03"sv),
34 TestCase("%d", "-32767", "%u", "4294934529", "\xfd\xff\x03"sv),
35 TestCase("%d", "32766", "%u", "32766", "\xfc\xff\x03"sv),
36 TestCase("%d", "32767", "%u", "32767", "\xfe\xff\x03"sv),
37 TestCase("%d", "-2147483648", "%u", "2147483648", "\xff\xff\xff\xff\x0f"sv),
38 TestCase("%d", "-2147483647", "%u", "2147483649", "\xfd\xff\xff\xff\x0f"sv),
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 // replace(size_type pos1, size_type n1, basic_string_view<charT,traits> sv);
22 template <class S, class SV>
24 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test() argument
30 s.replace(pos1, n1, sv); in test()
33 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
34 typename S::size_type rlen = sv.size(); in test()
35 assert(s.size() == old_size - xlen + rlen); in test()
[all …]
Diter_iter_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 // replace(const_iterator i1, const_iterator i2, basic_string_view<charT,traits> sv);
21 template <class S, class SV>
23 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test() argument
28 typename S::size_type xlen = last - first; in test()
29 s.replace(first, last, sv); in test()
32 typename S::size_type rlen = sv.size(); in test()
33 assert(s.size() == old_size - xlen + rlen); in test()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
Dsize_size_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
13 // replace(size_type pos1, size_type n1, basic_string_view<charT,traits> sv);
23 template <class S, class SV>
25 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test() argument
31 s.replace(pos1, n1, sv); in test()
34 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
35 typename S::size_type rlen = sv.size(); in test()
36 assert(s.size() == old_size - xlen + rlen); in test()
43 s.replace(pos1, n1, sv); in test()
[all …]
Diter_iter_string_view.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
13 // replace(const_iterator i1, const_iterator i2, basic_string_view<charT,traits> sv);
22 template <class S, class SV>
24 test(S s, typename S::size_type pos1, typename S::size_type n1, SV sv, S expected) in test() argument
29 typename S::size_type xlen = last - first; in test()
30 s.replace(first, last, sv); in test()
33 typename S::size_type rlen = sv.size(); in test()
34 assert(s.size() == old_size - xlen + rlen); in test()
37 template <class S, class SV>
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.cons/
DT_size_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
27 template <class S, class SV>
29 test(SV sv, std::size_t pos, std::size_t n) in test() argument
34 if (pos <= sv.size()) in test()
36 S s2(sv, static_cast<Size>(pos), static_cast<Size>(n)); in test()
38 assert(pos <= sv.size()); in test()
39 std::size_t rlen = std::min(sv.size() - pos, n); in test()
41 assert(T::compare(s2.data(), sv.data() + pos, rlen) == 0); in test()
[all …]
/external/libcxx/test/std/strings/basic.string/string.cons/
DT_size_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
28 template <class S, class SV>
30 test(SV sv, std::size_t pos, std::size_t n) in test() argument
35 if (pos <= sv.size()) in test()
37 S s2(sv, static_cast<Size>(pos), static_cast<Size>(n)); in test()
39 assert(pos <= sv.size()); in test()
40 std::size_t rlen = std::min(sv.size() - pos, n); in test()
42 assert(T::compare(s2.data(), sv.data() + pos, rlen) == 0); in test()
51 S s2(sv, static_cast<Size>(pos), static_cast<Size>(n)); in test()
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type find(basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find(sv, pos) == x); in test()
25 assert(pos <= x && x + sv.size() <= s.size()); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type rfind(basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.rfind(sv, pos) == x); in test()
25 assert(x <= pos && x + sv.size() <= s.size()); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type rfind(basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.rfind(sv, pos) == x); in test()
25 assert(x <= pos && x + sv.size() <= s.size()); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.rfind(sv) == x); in test()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type find(basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find(sv, pos) == x); in test()
25 assert(pos <= x && x + sv.size() <= s.size()); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find(sv) == x); in test()
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type find_last_not_of(basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_last_not_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_last_not_of(sv) == x); in test()
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type find_first_not_of(basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_first_not_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_first_not_of(sv) == x); in test()
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type find_last_of(const basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_last_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_last_of(sv) == x); in test()
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 // size_type find_first_of(const basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_first_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_first_of(sv) == x); in test()
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type find_first_not_of(basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_first_not_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_first_not_of(sv) == x); in test()
37 template <class S, class SV>
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type find_last_of(const basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_last_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_last_of(sv) == x); in test()
37 template <class S, class SV>
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type find_first_of(const basic_string_view sv, size_type pos = 0) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_first_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_first_of(sv) == x); in test()
37 template <class S, class SV>
[all …]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/
Dstring_view_size.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
12 // size_type find_last_not_of(basic_string_view sv, size_type pos = npos) const;
19 template <class S, class SV>
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) in test() argument
23 assert(s.find_last_not_of(sv, pos) == x); in test()
28 template <class S, class SV>
30 test(const S& s, SV sv, typename S::size_type x) in test() argument
32 assert(s.find_last_not_of(sv) == x); in test()
37 template <class S, class SV>
[all …]
/external/llvm-project/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
Dstring_view.pass.cpp1 //===----------------------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 // insert(size_type pos, string_view sv);
21 template <class S, class SV>
23 test(S s, typename S::size_type pos, SV sv, S expected) in test() argument
29 s.insert(pos, sv); in test()
38 s.insert(pos, sv); in test()
54 typedef std::string_view SV; in main() typedef
55 test(S(""), 0, SV(""), S("")); in main()
[all …]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
Dstring_view.pass.cpp1 //===----------------------------------------------------------------------===//
8 //===----------------------------------------------------------------------===//
13 // insert(size_type pos, string_view sv);
22 template <class S, class SV>
24 test(S s, typename S::size_type pos, SV sv, S expected) in test() argument
30 s.insert(pos, sv); in test()
39 s.insert(pos, sv); in test()
55 typedef std::string_view SV; in main() typedef
56 test(S(""), 0, SV(""), S("")); in main()
57 test(S(""), 0, SV("12345"), S("12345")); in main()
[all …]

12345678910>>...43