Searched defs:sv (Results 1 - 25 of 168) sorted by relevance

1234567

/external/syslinux/com32/mboot/
H A Dsyslinux.c39 const struct syslinux_version *sv; local
41 sv = syslinux_version();
42 mbinfo.boot_loader_name = map_string(sv->version_string);
/external/libcxx/test/std/strings/basic.string/string.cons/
H A Dstring_view.fail.cpp12 // explicit basic_string(basic_string_view<CharT, traits> sv, const Allocator& a = Allocator());
21 std::string_view sv = "ABCDE"; local
22 foo(sv); // requires implicit conversion from string_view to string
H A Dstring_view_assignment.pass.cpp12 // basic_string<charT,traits,Allocator>& operator=(basic_string_view<charT, traits> sv);
22 test(S s1, SV sv) argument
25 s1 = sv;
27 assert(s1.size() == sv.size());
28 assert(T::compare(s1.data(), sv.data(), s1.size()) == 0);
H A Dstring_view.pass.cpp12 // explicit basic_string(basic_string_view<CharT, traits> sv, const Allocator& a = Allocator());
26 test(std::basic_string_view<charT> sv) argument
32 S s2(sv);
34 assert(s2.size() == sv.size());
35 assert(T::compare(s2.data(), sv.data(), sv.size()) == 0);
41 s2 = sv;
43 assert(s2.size() == sv.size());
44 assert(T::compare(s2.data(), sv.data(), sv
52 test(std::basic_string_view<charT> sv, const A& a) argument
[all...]
/external/libcxx/test/std/strings/string.view/string.view.io/
H A Dstream_insert.pass.cpp28 string_view sv("some text");
29 out << sv; local
31 assert(sv == out.str());
36 string_view sv(s);
38 out << sv; local
44 wstring_view sv(L"some text");
45 out << sv; local
47 assert(sv == out.str());
52 wstring_view sv(s);
54 out << sv; local
[all...]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.not.of/
H A Dstring_view_size.pass.cpp12 // size_type find_first_not_of(basic_string_view sv, size_type pos = 0) const;
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) argument
23 assert(s.find_first_not_of(sv, pos) == x);
30 test(const S& s, SV sv, typename S::size_type x) argument
32 assert(s.find_first_not_of(sv) == x);
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.first.of/
H A Dstring_view_size.pass.cpp12 // size_type find_first_of(const basic_string_view sv, size_type pos = 0) const;
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) argument
23 assert(s.find_first_of(sv, pos) == x);
30 test(const S& s, SV sv, typename S::size_type x) argument
32 assert(s.find_first_of(sv) == x);
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/
H A Dstring_view_size.pass.cpp12 // size_type find_last_not_of(basic_string_view sv, size_type pos = npos) const;
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) argument
23 assert(s.find_last_not_of(sv, pos) == x);
30 test(const S& s, SV sv, typename S::size_type x) argument
32 assert(s.find_last_not_of(sv) == x);
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.of/
H A Dstring_view_size.pass.cpp12 // size_type find_last_of(const basic_string_view sv, size_type pos = npos) const;
21 test(const S& s, SV sv, typename S::size_type pos, typename S::size_type x) argument
23 assert(s.find_last_of(sv, pos) == x);
30 test(const S& s, SV sv, typename S::size_type x) argument
32 assert(s.find_last_of(sv) == x);
/external/syslinux/com32/lib/sys/
H A Dgpxe.c9 const struct syslinux_version *sv; local
14 sv = syslinux_version();
15 if (sv->filesystem != SYSLINUX_FS_PXELINUX)
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_append/
H A Dstring_view.pass.cpp13 // append(basic_string_view<charT,traits> sv);
24 test(S s, SV sv, S expected) argument
26 s.append(sv);
/external/strace/tests/
H A Derestartsys.c38 static int sv[2]; variable
43 close(sv[1]);
44 sv[1] = -1;
50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
70 if (recvfrom(sv[0], &sv[1], sizeof(sv[1]), 0, NULL, NULL))
75 sv[0], &sv[1], (int) sizeof(sv[
[all...]
H A Dsendfile64.c50 int sv[2]; local
51 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen))
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen)
92 sv[1], reg_in, alen, alen);
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen)
97 sv[1], reg_in, alen, alen, alen);
99 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, file_size + 1)
102 sv[1], reg_in, alen, file_size, file_size + 1, blen);
105 assert(syscall(__NR_sendfile64, sv[
[all...]
H A Dso_peercred.c55 int sv[2]; local
56 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
61 get_peercred(sv[0], peercred, len);
62 printf("getsockopt(%d, SOL_SOCKET, SO_PEERCRED", sv[0]);
/external/strace/tests-m32/
H A Derestartsys.c38 static int sv[2]; variable
43 close(sv[1]);
44 sv[1] = -1;
50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
70 if (recvfrom(sv[0], &sv[1], sizeof(sv[1]), 0, NULL, NULL))
75 sv[0], &sv[1], (int) sizeof(sv[
[all...]
H A Dsendfile64.c50 int sv[2]; local
51 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen))
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen)
92 sv[1], reg_in, alen, alen);
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen)
97 sv[1], reg_in, alen, alen, alen);
99 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, file_size + 1)
102 sv[1], reg_in, alen, file_size, file_size + 1, blen);
105 assert(syscall(__NR_sendfile64, sv[
[all...]
H A Dso_peercred.c55 int sv[2]; local
56 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
61 get_peercred(sv[0], peercred, len);
62 printf("getsockopt(%d, SOL_SOCKET, SO_PEERCRED", sv[0]);
/external/strace/tests-mx32/
H A Derestartsys.c38 static int sv[2]; variable
43 close(sv[1]);
44 sv[1] = -1;
50 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
70 if (recvfrom(sv[0], &sv[1], sizeof(sv[1]), 0, NULL, NULL))
75 sv[0], &sv[1], (int) sizeof(sv[
[all...]
H A Dsendfile64.c50 int sv[2]; local
51 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv))
62 if (getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &file_size, &optlen))
89 assert(syscall(__NR_sendfile64, sv[1], reg_in, NULL, alen)
92 sv[1], reg_in, alen, alen);
94 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, alen)
97 sv[1], reg_in, alen, alen, alen);
99 assert(syscall(__NR_sendfile64, sv[1], reg_in, p_off, file_size + 1)
102 sv[1], reg_in, alen, file_size, file_size + 1, blen);
105 assert(syscall(__NR_sendfile64, sv[
[all...]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_assign/
H A Dstring_view.pass.cpp13 // assign(basic_string_view<charT,traits> sv);
25 test(S s, SV sv, S expected) argument
27 s.assign(sv);
34 testAlloc(S s, SV sv, const typename S::allocator_type& a) argument
36 s.assign(sv);
38 assert(s == sv);
/external/libcxx/test/std/strings/basic.string/string.ops/string_compare/
H A Dstring_view.pass.cpp12 // int compare(const basic_string_view sv) const
30 test(const S& s, SV sv, int x) argument
32 assert(sign(s.compare(sv)) == sign(x));
/external/libcxx/test/std/strings/string.view/string.view.ops/
H A Dcopy.pass.cpp28 void test1 ( std::basic_string_view<CharT> sv, size_t n, size_t pos ) { argument
29 const size_t rlen = std::min ( n, sv.size() - pos );
34 if (pos > sv.size()) {
37 sv.copy(dest1, n, pos);
45 sv.copy(dest1, n, pos);
46 std::copy_n(sv.begin() + pos, rlen, dest2);
H A Dsubstr.pass.cpp26 void test1(std::basic_string_view<CharT> sv, size_t n, size_t pos) { argument
29 if (pos > sv.size())
31 sv1 = sv.substr(pos, n);
34 sv1 = sv.substr(pos, n);
35 assert(pos <= sv.size());
38 assert(pos > sv.size());
42 const size_t rlen = std::min(n, sv.size() - pos);
45 assert(sv[pos+i] == sv1[i]);
/external/skia/tests/
H A DPathOpsDVectorTest.cpp38 SkVector sv = v1.asSkVector(); local
39 REPORTER_ASSERT(reporter, sv.fX == 0 && sv.fY == 0);
/external/skqp/tests/
H A DPathOpsDVectorTest.cpp38 SkVector sv = v1.asSkVector(); local
39 REPORTER_ASSERT(reporter, sv.fX == 0 && sv.fY == 0);

Completed in 2094 milliseconds

1234567