Home
last modified time | relevance | path

Searched refs:c16c (Results 1 – 1 of 1) sorted by relevance

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/
Dutf_sanity_check.pass.cpp42 char c16c[4]; in main() local
49 assert(f32_16.out(mbs, &c32x, &c32x+1, c_c32p, c16c+0, c16c+4, c16cp) == F32_8::error); in main()
54 assert(f32_16.out(mbs, &c32x, &c32x+1, c_c32p, c16c, c16c+4, c16cp) == F32_8::ok); in main()
57 assert(c16cp-c16c == 2); in main()
59 assert(c16cp-c16c == 4); in main()
60 for (int i = 0; i < (c16cp - c16c) / 2; ++i) in main()
61 c16[i] = (unsigned char)c16c[2*i] << 8 | (unsigned char)c16c[2*i+1]; in main()
62 c_c16p = c16 + (c16cp - c16c) / 2; in main()
114 c16c[2*i] = static_cast<char>(c16[i] >> 8); in main()
115 c16c[2*i+1] = static_cast<char>(c16[i]); in main()
[all …]