Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 746) sorted by relevance

12345678910>>...30

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.virtuals/
Dunderflow.pass.cpp40 test_buf<char> f; in main() local
41 assert(f.open("underflow.dat", std::ios_base::in) != 0); in main()
42 assert(f.is_open()); in main()
43 assert(f.eback() == 0); in main()
44 assert(f.gptr() == 0); in main()
45 assert(f.egptr() == 0); in main()
46 assert(f.underflow() == '1'); in main()
47 assert(f.eback() != 0); in main()
48 assert(f.eback() == f.gptr()); in main()
49 assert(*f.gptr() == '1'); in main()
[all …]
Doverflow.pass.cpp41 test_buf<char> f; in main() local
42 assert(f.open("overflow.dat", std::ios_base::out) != 0); in main()
43 assert(f.is_open()); in main()
44 assert(f.pbase() == 0); in main()
45 assert(f.pptr() == 0); in main()
46 assert(f.epptr() == 0); in main()
47 assert(f.overflow('a') == 'a'); in main()
48 assert(f.pbase() != 0); in main()
49 assert(f.pptr() == f.pbase()); in main()
50 assert(f.epptr() - f.pbase() == 4095); in main()
[all …]
Dseekoff.pass.cpp27 std::filebuf f; in main() local
28 f.pubsetbuf(buf, sizeof(buf)); in main()
29 assert(f.open("seekoff.dat", std::ios_base::in | std::ios_base::out in main()
31 assert(f.is_open()); in main()
32 f.sputn("abcdefghijklmnopqrstuvwxyz", 26); in main()
34 pos_type p = f.pubseekoff(-15, std::ios_base::cur); in main()
36 assert(f.sgetc() == 'l'); in main()
37 f.pubseekoff(0, std::ios_base::beg); in main()
38 assert(f.sgetc() == 'a'); in main()
39 f.pubseekoff(-1, std::ios_base::end); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/atomics/atomics.flag/
Datomic_flag_test_and_set_explicit.pass.cpp23 std::atomic_flag f; in main() local
24 f.clear(); in main()
25 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_relaxed) == 0); in main()
26 assert(f.test_and_set() == 1); in main()
29 std::atomic_flag f; in main() local
30 f.clear(); in main()
31 assert(atomic_flag_test_and_set_explicit(&f, std::memory_order_consume) == 0); in main()
32 assert(f.test_and_set() == 1); in main()
35 std::atomic_flag f; in main() local
36 f.clear(); in main()
[all …]
Dtest_and_set.pass.cpp23 std::atomic_flag f; in main() local
24 f.clear(); in main()
25 assert(f.test_and_set() == 0); in main()
26 assert(f.test_and_set() == 1); in main()
29 std::atomic_flag f; in main() local
30 f.clear(); in main()
31 assert(f.test_and_set(std::memory_order_relaxed) == 0); in main()
32 assert(f.test_and_set(std::memory_order_relaxed) == 1); in main()
35 std::atomic_flag f; in main() local
36 f.clear(); in main()
[all …]
Dclear.pass.cpp23 std::atomic_flag f; in main() local
24 f.test_and_set(); in main()
25 f.clear(); in main()
26 assert(f.test_and_set() == 0); in main()
29 std::atomic_flag f; in main() local
30 f.test_and_set(); in main()
31 f.clear(std::memory_order_relaxed); in main()
32 assert(f.test_and_set() == 0); in main()
35 std::atomic_flag f; in main() local
36 f.test_and_set(); in main()
[all …]
Datomic_flag_clear_explicit.pass.cpp23 std::atomic_flag f; in main() local
24 f.test_and_set(); in main()
25 atomic_flag_clear_explicit(&f, std::memory_order_relaxed); in main()
26 assert(f.test_and_set() == 0); in main()
29 std::atomic_flag f; in main() local
30 f.test_and_set(); in main()
31 atomic_flag_clear_explicit(&f, std::memory_order_release); in main()
32 assert(f.test_and_set() == 0); in main()
35 std::atomic_flag f; in main() local
36 f.test_and_set(); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct.byname/
Dgrouping.pass.cpp62 Fnf f("C", 1); in main() local
63 assert(f.grouping() == s || f.grouping() == ""); in main()
66 Fnt f("C", 1); in main() local
67 assert(f.grouping() == s || f.grouping() == ""); in main()
70 Fwf f("C", 1); in main() local
71 assert(f.grouping() == s || f.grouping() == ""); in main()
74 Fwt f("C", 1); in main() local
75 assert(f.grouping() == s || f.grouping() == ""); in main()
79 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
80 assert(f.grouping() == "\3\3"); in main()
[all …]
Dfrac_digits.pass.cpp57 Fnf f("C", 1); in main() local
58 assert(f.frac_digits() == 0); in main()
61 Fnt f("C", 1); in main() local
62 assert(f.frac_digits() == 0); in main()
65 Fwf f("C", 1); in main() local
66 assert(f.frac_digits() == 0); in main()
69 Fwt f("C", 1); in main() local
70 assert(f.frac_digits() == 0); in main()
74 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
75 assert(f.frac_digits() == 2); in main()
[all …]
Ddecimal_point.pass.cpp57 Fnf f("C", 1); in main() local
58 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main()
61 Fnt f("C", 1); in main() local
62 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main()
65 Fwf f("C", 1); in main() local
66 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main()
69 Fwt f("C", 1); in main() local
70 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main()
74 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
75 assert(f.decimal_point() == '.'); in main()
[all …]
Dpositive_sign.pass.cpp57 Fnf f("C", 1); in main() local
58 assert(f.positive_sign() == std::string()); in main()
61 Fnt f("C", 1); in main() local
62 assert(f.positive_sign() == std::string()); in main()
65 Fwf f("C", 1); in main() local
66 assert(f.positive_sign() == std::wstring()); in main()
69 Fwt f("C", 1); in main() local
70 assert(f.positive_sign() == std::wstring()); in main()
74 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
75 assert(f.positive_sign() == ""); in main()
[all …]
Dnegative_sign.pass.cpp57 Fnf f("C", 1); in main() local
58 assert(f.negative_sign() == std::string()); in main()
61 Fnt f("C", 1); in main() local
62 assert(f.negative_sign() == std::string()); in main()
65 Fwf f("C", 1); in main() local
66 assert(f.negative_sign() == std::wstring()); in main()
69 Fwt f("C", 1); in main() local
70 assert(f.negative_sign() == std::wstring()); in main()
74 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
75 assert(f.negative_sign() == "-"); in main()
[all …]
Dthousands_sep.pass.cpp57 Fnf f("C", 1); in main() local
58 assert(f.thousands_sep() == std::numeric_limits<char>::max()); in main()
61 Fnt f("C", 1); in main() local
62 assert(f.thousands_sep() == std::numeric_limits<char>::max()); in main()
65 Fwf f("C", 1); in main() local
66 assert(f.thousands_sep() == std::numeric_limits<wchar_t>::max()); in main()
69 Fwt f("C", 1); in main() local
70 assert(f.thousands_sep() == std::numeric_limits<wchar_t>::max()); in main()
74 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
75 assert(f.thousands_sep() == ','); in main()
[all …]
Dcurr_symbol.pass.cpp59 Fnf f("C", 1); in main() local
60 assert(f.curr_symbol() == std::string()); in main()
63 Fnt f("C", 1); in main() local
64 assert(f.curr_symbol() == std::string()); in main()
67 Fwf f("C", 1); in main() local
68 assert(f.curr_symbol() == std::wstring()); in main()
71 Fwt f("C", 1); in main() local
72 assert(f.curr_symbol() == std::wstring()); in main()
76 Fnf f(LOCALE_en_US_UTF_8, 1); in main() local
77 assert(f.curr_symbol() == "$"); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/
Dunderflow.pass.cpp45 test_buf f(bs.rdbuf()); in main() local
46 assert(f.eback() == 0); in main()
47 assert(f.gptr() == 0); in main()
48 assert(f.egptr() == 0); in main()
49 assert(f.underflow() == L'1'); in main()
50 assert(f.eback() != 0); in main()
51 assert(f.eback() == f.gptr()); in main()
52 assert(*f.gptr() == L'1'); in main()
53 assert(f.egptr() - f.eback() == 9); in main()
57 test_buf f(bs.rdbuf()); in main() local
[all …]
Doverflow.pass.cpp45 test_buf f(bs.rdbuf()); in main() local
46 assert(f.pbase() == 0); in main()
47 assert(f.pptr() == 0); in main()
48 assert(f.epptr() == 0); in main()
49 assert(f.overflow(L'a') == L'a'); in main()
50 assert(f.pbase() != 0); in main()
51 assert(f.pptr() == f.pbase()); in main()
52 assert(f.epptr() - f.pbase() == 4095); in main()
56 test_buf f(bs.rdbuf()); in main() local
57 assert(f.sgetc() == L'a'); in main()
[all …]
/ndk/sources/android/support/src/wcstox/
Dshgetc.c5 void shinit_wcstring(struct fake_file_t *f, const wchar_t* wcs) { in shinit_wcstring() argument
6 f->rstart = wcs; in shinit_wcstring()
7 f->rpos = wcs; in shinit_wcstring()
8 f->rend = wcs + wcslen(wcs); in shinit_wcstring()
9 f->extra_eof = 0; in shinit_wcstring()
12 int shgetc(struct fake_file_t *f) { in shgetc() argument
13 if (f->rpos >= f->rend) { in shgetc()
14 f->extra_eof ++; in shgetc()
17 wchar_t wc = *f->rpos++; in shgetc()
22 void shunget(struct fake_file_t *f) { in shunget() argument
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.ctype.byname/
Dtolower_1.pass.cpp30 const F& f = std::use_facet<F>(l); in main() local
32 assert(f.tolower(' ') == ' '); in main()
33 assert(f.tolower('A') == 'a'); in main()
34 assert(f.tolower('\x07') == '\x07'); in main()
35 assert(f.tolower('.') == '.'); in main()
36 assert(f.tolower('a') == 'a'); in main()
37 assert(f.tolower('1') == '1'); in main()
38 assert(f.tolower('\xDA') == '\xFA'); in main()
39 assert(f.tolower('\xFA') == '\xFA'); in main()
46 const F& f = std::use_facet<F>(l); in main() local
[all …]
Dtoupper_1.pass.cpp30 const F& f = std::use_facet<F>(l); in main() local
32 assert(f.toupper(' ') == ' '); in main()
33 assert(f.toupper('A') == 'A'); in main()
34 assert(f.toupper('\x07') == '\x07'); in main()
35 assert(f.toupper('.') == '.'); in main()
36 assert(f.toupper('a') == 'A'); in main()
37 assert(f.toupper('1') == '1'); in main()
38 assert(f.toupper('\xDA') == '\xDA'); in main()
39 assert(f.toupper('\xFA') == '\xDA'); in main()
46 const F& f = std::use_facet<F>(l); in main() local
[all …]
Dis_1.pass.cpp28 const F& f = std::use_facet<F>(l); in main() local
30 assert(f.is(F::space, L' ')); in main()
31 assert(!f.is(F::space, L'A')); in main()
33 assert(f.is(F::print, L' ')); in main()
34 assert(!f.is(F::print, L'\x07')); in main()
36 assert(f.is(F::cntrl, L'\x07')); in main()
37 assert(!f.is(F::cntrl, L' ')); in main()
39 assert(f.is(F::upper, L'A')); in main()
40 assert(!f.is(F::upper, L'a')); in main()
42 assert(f.is(F::lower, L'a')); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/bitwise.operations/
Dbit_xor.pass.cpp21 const F f = F(); in main() local
23 assert(f(0xEA95, 0xEA95) == 0); in main()
24 assert(f(0xEA95, 0x58D3) == 0xB246); in main()
25 assert(f(0x58D3, 0xEA95) == 0xB246); in main()
26 assert(f(0x58D3, 0) == 0x58D3); in main()
27 assert(f(0xFFFF, 0x58D3) == 0xA72C); in main()
31 assert(f(0xEA95, 0xEA95) == 0); in main()
32 assert(f(0xEA95L, 0xEA95) == 0); in main()
33 assert(f(0xEA95, 0xEA95L) == 0); in main()
35 assert(f(0xEA95, 0x58D3) == 0xB246); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/
Dis_1.pass.cpp24 const F& f = std::use_facet<F>(l); in main() local
26 assert(f.is(F::space, ' ')); in main()
27 assert(!f.is(F::space, 'A')); in main()
29 assert(f.is(F::print, ' ')); in main()
30 assert(!f.is(F::print, '\x07')); in main()
32 assert(f.is(F::cntrl, '\x07')); in main()
33 assert(!f.is(F::cntrl, ' ')); in main()
35 assert(f.is(F::upper, 'A')); in main()
36 assert(!f.is(F::upper, 'a')); in main()
38 assert(f.is(F::lower, 'a')); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/input.output/file.streams/fstreams/filebuf.members/
Dopen_pointer.pass.cpp22 std::filebuf f; in main() local
23 assert(f.open(temp.c_str(), std::ios_base::out) != 0); in main()
24 assert(f.is_open()); in main()
25 assert(f.sputn("123", 3) == 3); in main()
28 std::filebuf f; in main() local
29 assert(f.open(temp.c_str(), std::ios_base::in) != 0); in main()
30 assert(f.is_open()); in main()
31 assert(f.sbumpc() == '1'); in main()
32 assert(f.sbumpc() == '2'); in main()
33 assert(f.sbumpc() == '3'); in main()
[all …]
/ndk/tests/device/test-stlport_shared-exception/jni/
Dcatch7p.cpp31 void check(F *f) in check() argument
37 try { fnf(f); } in check()
39 catch(F *p) { caught = 1; if (p != f) abort();} in check()
44 try { fnf(f); } in check()
46 catch(E *p) { caught = 1; if (p != f) abort();} in check()
51 try { fnf(f); } in check()
53 catch(D *p) { caught = 1; if (p != f) abort();} in check()
58 try { fnf(f); } in check()
60 catch(B *p) { caught = 1; if (p != f) abort();} in check()
65 try { fnf(f); } in check()
[all …]
/ndk/tests/device/test-stlport_static-exception/jni/
Dcatch7p.cpp31 void check(F *f) in check() argument
37 try { fnf(f); } in check()
39 catch(F *p) { caught = 1; if (p != f) abort();} in check()
44 try { fnf(f); } in check()
46 catch(E *p) { caught = 1; if (p != f) abort();} in check()
51 try { fnf(f); } in check()
53 catch(D *p) { caught = 1; if (p != f) abort();} in check()
58 try { fnf(f); } in check()
60 catch(B *p) { caught = 1; if (p != f) abort();} in check()
65 try { fnf(f); } in check()
[all …]

12345678910>>...30