/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
D | find.pass.cpp | 25 constexpr const char16_t *p = u"123"; in test_constexpr() 26 return std::char_traits<char16_t>::find(p, 3, u'1') == p in test_constexpr() 27 && std::char_traits<char16_t>::find(p, 3, u'2') == p + 1 in test_constexpr() 28 && std::char_traits<char16_t>::find(p, 3, u'3') == p + 2 in test_constexpr() 29 && std::char_traits<char16_t>::find(p, 3, u'4') == nullptr; in test_constexpr() 36 char16_t s1[] = {1, 2, 3}; in main() 37 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); in main() 38 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); in main() 39 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); in main() 40 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0); in main() [all …]
|
D | compare.pass.cpp | 25 return std::char_traits<char16_t>::compare(u"123", u"223", 3) < 0 in test_constexpr() 26 && std::char_traits<char16_t>::compare(u"223", u"123", 3) > 0 in test_constexpr() 27 && std::char_traits<char16_t>::compare(u"123", u"123", 3) == 0; in test_constexpr() 36 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); in main() 37 assert(std::char_traits<char16_t>::compare(NULL, NULL, 0) == 0); in main() 39 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); in main() 40 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); in main() 41 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); in main() 43 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); in main() 44 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); in main() [all …]
|
D | move.pass.cpp | 22 char16_t s1[] = {1, 2, 3}; in main() 23 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); in main() 24 assert(s1[0] == char16_t(2)); in main() 25 assert(s1[1] == char16_t(3)); in main() 26 assert(s1[2] == char16_t(3)); in main() 27 s1[2] = char16_t(0); in main() 28 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); in main() 29 assert(s1[0] == char16_t(2)); in main() 30 assert(s1[1] == char16_t(2)); in main() 31 assert(s1[2] == char16_t(3)); in main() [all …]
|
D | assign3.pass.cpp | 22 char16_t s2[3] = {0}; in main() 23 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); in main() 24 assert(s2[0] == char16_t(5)); in main() 25 assert(s2[1] == char16_t(5)); in main() 26 assert(s2[2] == char16_t(5)); in main() 27 assert(std::char_traits<char16_t>::assign(NULL, 0, char16_t(5)) == NULL); in main()
|
D | copy.pass.cpp | 22 char16_t s1[] = {1, 2, 3}; in main() 23 char16_t s2[3] = {0}; in main() 24 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); in main() 25 assert(s2[0] == char16_t(1)); in main() 26 assert(s2[1] == char16_t(2)); in main() 27 assert(s2[2] == char16_t(3)); in main() 28 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL); in main() 29 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1); in main()
|
D | eq_int_type.pass.cpp | 25 assert( std::char_traits<char16_t>::eq_int_type(u'a', u'a')); in main() 26 assert(!std::char_traits<char16_t>::eq_int_type(u'a', u'A')); in main() 27 assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A')); in main() 29 assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), in main() 30 std::char_traits<char16_t>::eof())); in main()
|
/external/llvm-project/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
D | find.pass.cpp | 24 constexpr const char16_t *p = u"123"; in test_constexpr() 25 return std::char_traits<char16_t>::find(p, 3, u'1') == p in test_constexpr() 26 && std::char_traits<char16_t>::find(p, 3, u'2') == p + 1 in test_constexpr() 27 && std::char_traits<char16_t>::find(p, 3, u'3') == p + 2 in test_constexpr() 28 && std::char_traits<char16_t>::find(p, 3, u'4') == nullptr; in test_constexpr() 35 char16_t s1[] = {1, 2, 3}; in main() 36 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); in main() 37 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); in main() 38 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); in main() 39 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0); in main() [all …]
|
D | compare.pass.cpp | 24 return std::char_traits<char16_t>::compare(u"123", u"223", 3) < 0 in test_constexpr() 25 && std::char_traits<char16_t>::compare(u"223", u"123", 3) > 0 in test_constexpr() 26 && std::char_traits<char16_t>::compare(u"123", u"123", 3) == 0; in test_constexpr() 35 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); in main() 36 assert(std::char_traits<char16_t>::compare(NULL, NULL, 0) == 0); in main() 38 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); in main() 39 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); in main() 40 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); in main() 42 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); in main() 43 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); in main() [all …]
|
D | move.pass.cpp | 23 char16_t s1[] = {1, 2, 3}; in test() 24 assert(std::char_traits<char16_t>::move(s1, s1+1, 2) == s1); in test() 25 assert(s1[0] == char16_t(2)); in test() 26 assert(s1[1] == char16_t(3)); in test() 27 assert(s1[2] == char16_t(3)); in test() 28 s1[2] = char16_t(0); in test() 29 assert(std::char_traits<char16_t>::move(s1+1, s1, 2) == s1+1); in test() 30 assert(s1[0] == char16_t(2)); in test() 31 assert(s1[1] == char16_t(2)); in test() 32 assert(s1[2] == char16_t(3)); in test() [all …]
|
D | assign3.pass.cpp | 23 char16_t s2[3] = {0}; in test() 24 assert(std::char_traits<char16_t>::assign(s2, 3, char16_t(5)) == s2); in test() 25 assert(s2[0] == char16_t(5)); in test() 26 assert(s2[1] == char16_t(5)); in test() 27 assert(s2[2] == char16_t(5)); in test() 28 assert(std::char_traits<char16_t>::assign(NULL, 0, char16_t(5)) == NULL); in test()
|
D | copy.pass.cpp | 23 char16_t s1[] = {1, 2, 3}; in test() 24 char16_t s2[3] = {0}; in test() 25 assert(std::char_traits<char16_t>::copy(s2, s1, 3) == s2); in test() 26 assert(s2[0] == char16_t(1)); in test() 27 assert(s2[1] == char16_t(2)); in test() 28 assert(s2[2] == char16_t(3)); in test() 29 assert(std::char_traits<char16_t>::copy(NULL, s1, 0) == NULL); in test() 30 assert(std::char_traits<char16_t>::copy(s1, NULL, 0) == s1); in test()
|
D | eq_int_type.pass.cpp | 24 assert( std::char_traits<char16_t>::eq_int_type(u'a', u'a')); in main() 25 assert(!std::char_traits<char16_t>::eq_int_type(u'a', u'A')); in main() 26 assert(!std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), u'A')); in main() 28 assert( std::char_traits<char16_t>::eq_int_type(std::char_traits<char16_t>::eof(), in main() 29 std::char_traits<char16_t>::eof())); in main()
|
D | length.pass.cpp | 24 return std::char_traits<char16_t>::length(u"") == 0 in test_constexpr() 25 && std::char_traits<char16_t>::length(u"abcd") == 4; in test_constexpr() 33 assert(std::char_traits<char16_t>::length(u"") == 0); in main() 34 assert(std::char_traits<char16_t>::length(u"a") == 1); in main() 35 assert(std::char_traits<char16_t>::length(u"aa") == 2); in main() 36 assert(std::char_traits<char16_t>::length(u"aaa") == 3); in main() 37 assert(std::char_traits<char16_t>::length(u"aaaa") == 4); in main()
|
/external/icu/libicu/ndk_headers/unicode/ |
D | char16ptr.h | 49 inline Char16Ptr(char16_t *p); 84 inline char16_t *get() const; 90 inline operator char16_t *() const { return get(); } 96 template<typename T> static char16_t *cast(T *t) { in cast() 98 return reinterpret_cast<char16_t *>(t); in cast() 101 char16_t *p_; 104 char16_t *cp; 114 Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {} in Char16Ptr() 126 char16_t *Char16Ptr::get() const { return p_; } in get() 130 Char16Ptr::Char16Ptr(char16_t *p) { u_.cp = p; } in Char16Ptr() [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | char16ptr.h | 49 inline Char16Ptr(char16_t *p); 84 inline char16_t *get() const; 90 inline operator char16_t *() const { return get(); } 96 template<typename T> static char16_t *cast(T *t) { in cast() 98 return reinterpret_cast<char16_t *>(t); in cast() 101 char16_t *p_; 104 char16_t *cp; 114 Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {} in Char16Ptr() 126 char16_t *Char16Ptr::get() const { return p_; } in get() 130 Char16Ptr::Char16Ptr(char16_t *p) { u_.cp = p; } in Char16Ptr() [all …]
|
D | ucharstrie.h | 148 const char16_t *uchars; 149 const char16_t *pos; 259 const char16_t *pos=pos_; in getValue() 276 const char16_t *pos=pos_; in hasUniqueValue() 375 const char16_t *branchNext(const char16_t *pos, int32_t length, UErrorCode &errorCode); 377 const char16_t *uchars_; 378 const char16_t *pos_; 379 const char16_t *initialPos_; 407 UCharsTrie(char16_t *adoptUChars, const char16_t *trieUChars) in UCharsTrie() 420 static inline int32_t readValue(const char16_t *pos, int32_t leadUnit) { in readValue() [all …]
|
D | unistr.h | 73 char16_t *dest, int32_t destCapacity, 74 const char16_t *src, int32_t srcLength, 118 # define UNICODE_STRING(cs, _length) icu::UnicodeString(true, (const char16_t*)u ## cs, _length) 460 const char16_t *srcChars) const; 481 const char16_t *srcChars, 619 const char16_t *srcChars) const; 644 const char16_t *srcChars, 794 const char16_t *srcChars, 821 const char16_t *srcChars, 898 inline UBool startsWith(const char16_t *srcChars, [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | char16ptr.h | 49 inline Char16Ptr(char16_t *p); 84 inline char16_t *get() const; 90 inline operator char16_t *() const { return get(); } 96 template<typename T> static char16_t *cast(T *t) { in cast() 98 return reinterpret_cast<char16_t *>(t); in cast() 101 char16_t *p_; 104 char16_t *cp; 114 Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {} in Char16Ptr() 126 char16_t *Char16Ptr::get() const { return p_; } in get() 130 Char16Ptr::Char16Ptr(char16_t *p) { u_.cp = p; } in Char16Ptr() [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | char16ptr.h | 49 inline Char16Ptr(char16_t *p); 84 inline char16_t *get() const; 90 inline operator char16_t *() const { return get(); } 96 template<typename T> static char16_t *cast(T *t) { in cast() 98 return reinterpret_cast<char16_t *>(t); in cast() 101 char16_t *p_; 104 char16_t *cp; 114 Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {} in Char16Ptr() 126 char16_t *Char16Ptr::get() const { return p_; } in get() 130 Char16Ptr::Char16Ptr(char16_t *p) { u_.cp = p; } in Char16Ptr() [all …]
|
D | ucharstrie.h | 148 const char16_t *uchars; 149 const char16_t *pos; 259 const char16_t *pos=pos_; in getValue() 276 const char16_t *pos=pos_; in hasUniqueValue() 375 const char16_t *branchNext(const char16_t *pos, int32_t length, UErrorCode &errorCode); 377 const char16_t *uchars_; 378 const char16_t *pos_; 379 const char16_t *initialPos_; 407 UCharsTrie(char16_t *adoptUChars, const char16_t *trieUChars) in UCharsTrie() 420 static inline int32_t readValue(const char16_t *pos, int32_t leadUnit) { in readValue() [all …]
|
D | unistr.h | 73 char16_t *dest, int32_t destCapacity, 74 const char16_t *src, int32_t srcLength, 118 # define UNICODE_STRING(cs, _length) icu::UnicodeString(true, (const char16_t*)u ## cs, _length) 460 const char16_t *srcChars) const; 481 const char16_t *srcChars, 619 const char16_t *srcChars) const; 644 const char16_t *srcChars, 794 const char16_t *srcChars, 821 const char16_t *srcChars, 898 inline UBool startsWith(const char16_t *srcChars, [all …]
|
/external/llvm-project/clang/test/Parser/ |
D | char-literal-printing.c | 36 char16_t test26(void) { return u'\\'; } in test26() 37 char16_t test27(void) { return u'\''; } in test27() 38 char16_t test28(void) { return u'\a'; } in test28() 39 char16_t test29(void) { return u'\b'; } in test29() 40 char16_t test30(void) { return u'\e'; } in test30() 41 char16_t test31(void) { return u'\f'; } in test31() 42 char16_t test32(void) { return u'\n'; } in test32() 43 char16_t test33(void) { return u'\r'; } in test33() 44 char16_t test34(void) { return u'\t'; } in test34() 45 char16_t test35(void) { return u'\v'; } in test35() [all …]
|
/external/clang/test/Parser/ |
D | char-literal-printing.c | 36 char16_t test26(void) { return u'\\'; } in test26() 37 char16_t test27(void) { return u'\''; } in test27() 38 char16_t test28(void) { return u'\a'; } in test28() 39 char16_t test29(void) { return u'\b'; } in test29() 40 char16_t test30(void) { return u'\e'; } in test30() 41 char16_t test31(void) { return u'\f'; } in test31() 42 char16_t test32(void) { return u'\n'; } in test32() 43 char16_t test33(void) { return u'\r'; } in test33() 44 char16_t test34(void) { return u'\t'; } in test34() 45 char16_t test35(void) { return u'\v'; } in test35() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest.h | 140 const char16_t* message, 141 const char16_t* skeleton, 142 const char16_t* conciseSkeleton, 149 const char16_t* message, 150 const char16_t* skeleton, 151 const char16_t* conciseSkeleton, 158 const char16_t* message, 159 const char16_t* skeleton, 160 const char16_t* conciseSkeleton, 169 const char16_t* message, [all …]
|
/external/icing/icing/transform/map/ |
D | normalization-map.cc | 27 char16_t from; 28 char16_t to; 694 const std::unordered_map<char16_t, char16_t>& GetNormalizationMap() { in GetNormalizationMap() 696 static const std::unordered_map<char16_t, char16_t> normalization_map = [] { in GetNormalizationMap() 697 std::unordered_map<char16_t, char16_t> map; in GetNormalizationMap()
|