Home
last modified time | relevance | path

Searched refs:char16 (Results 1 – 25 of 39) sorted by relevance

12

/external/libchrome/base/strings/
Dstring16.cc22 int c16memcmp(const char16* s1, const char16* s2, size_t n) { in c16memcmp()
35 size_t c16len(const char16* s) { in c16len()
36 const char16 *s_orig = s; in c16len()
43 const char16* c16memchr(const char16* s, char16 c, size_t n) { in c16memchr()
53 char16* c16memmove(char16* s1, const char16* s2, size_t n) { in c16memmove()
54 return static_cast<char16*>(memmove(s1, s2, n * sizeof(char16))); in c16memmove()
57 char16* c16memcpy(char16* s1, const char16* s2, size_t n) { in c16memcpy()
58 return static_cast<char16*>(memcpy(s1, s2, n * sizeof(char16))); in c16memcpy()
61 char16* c16memset(char16* s, char16 c, size_t n) { in c16memset()
62 char16 *s_orig = s; in c16memset()
[all …]
Dstring16.h43 typedef wchar_t char16; typedef
55 typedef uint16_t char16; typedef
60 BASE_EXPORT int c16memcmp(const char16* s1, const char16* s2, size_t n);
61 BASE_EXPORT size_t c16len(const char16* s);
62 BASE_EXPORT const char16* c16memchr(const char16* s, char16 c, size_t n);
63 BASE_EXPORT char16* c16memmove(char16* s1, const char16* s2, size_t n);
64 BASE_EXPORT char16* c16memcpy(char16* s1, const char16* s2, size_t n);
65 BASE_EXPORT char16* c16memset(char16* s, char16 c, size_t n);
68 typedef char16 char_type;
137 typedef std::basic_string<char16, base::string16_char_traits> string16;
[all …]
Dstring_util.h99 inline char16 ToLowerASCII(char16 c) { in ToLowerASCII()
108 inline char16 ToUpperASCII(char16 c) { in ToUpperASCII()
171 BASE_EXPORT extern const char16 kWhitespaceUTF16[]; // Includes Unicode.
173 BASE_EXPORT extern const char16 kWhitespaceASCIIAs16[]; // No unicode.
435 BASE_EXPORT char16* WriteInto(string16* str, size_t length_with_null);
Dstring_util_constants.cc41 const char16 kWhitespaceUTF16[] = {
55 const char16 kWhitespaceASCIIAs16[] = {
Dutf_string_conversion_utils.cc32 bool ReadUnicodeCharacter(const char16* src, in ReadUnicodeCharacter()
95 output->push_back(static_cast<char16>(code_point)); in WriteUnicodeCharacter()
125 template void PrepareForUTF8Output(const char16*, size_t, std::string*);
Dutf_string_conversions.cc104 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide()
129 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide()
172 bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output) { in UTF16ToUTF8()
205 bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output) { in UTF16ToUTF8()
Dutf_string_conversions.h34 BASE_EXPORT bool UTF16ToWide(const char16* src, size_t src_len,
40 BASE_EXPORT bool UTF16ToUTF8(const char16* src, size_t src_len,
Dstring_util_unittest.cc394 static char16 char16_ascii[] = { in TEST()
513 EXPECT_EQ(static_cast<char16>('c'), ToLowerASCII(static_cast<char16>('C'))); in TEST()
514 EXPECT_EQ(static_cast<char16>('c'), ToLowerASCII(static_cast<char16>('c'))); in TEST()
515 EXPECT_EQ(static_cast<char16>('2'), ToLowerASCII(static_cast<char16>('2'))); in TEST()
526 EXPECT_EQ(static_cast<char16>('C'), ToUpperASCII(static_cast<char16>('C'))); in TEST()
527 EXPECT_EQ(static_cast<char16>('C'), ToUpperASCII(static_cast<char16>('c'))); in TEST()
528 EXPECT_EQ(static_cast<char16>('2'), ToUpperASCII(static_cast<char16>('2'))); in TEST()
Dstring_piece.h62 char16* buf,
76 char16 c,
89 char16 c,
109 char16 c,
122 char16 c,
132 char16 c,
Dstring_piece.cc101 size_t copy(const StringPiece16& self, char16* buf, size_t n, size_t pos) { in copy()
144 size_t find(const StringPiece16& self, char16 c, size_t pos) { in find()
195 size_t rfind(const StringPiece16& self, char16 c, size_t pos) { in rfind()
298 char16 c, in find_first_not_of()
414 char16 c, in find_last_not_of()
Dpattern.cc146 base_icu::UChar32 operator()(const char16** p, const char16* end) { in operator ()()
Dstring_split.cc54 size_t FindFirstOf(StringPiece16 piece, char16 c, size_t pos) { in FindFirstOf()
177 return SplitStringT<string16, string16, char16>( in SplitString()
201 return SplitStringT<string16, StringPiece16, char16>( in SplitStringPiece()
/external/clang/test/SemaCXX/
Dvector.cpp5 typedef char char16 __attribute__ ((__vector_size__ (16))); typedef
11 void f0(char16);
13 void f0_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f0_test()
20 int &f1(char16); // expected-note 2{{candidate function}}
23 void f1_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f1_test()
33 void f2_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f2_test()
43 void conditional(bool Cond, char16 c16, longlong16 ll16, char16_e c16e, in conditional()
66 (void)(char16)ll16; in casts()
70 (void)(char16)ll16e; in casts()
76 (void)char16(ll16); in casts()
[all …]
/external/clang/test/SemaOpenCL/
Das_type.cl4 typedef __attribute__(( ext_vector_type(16) )) char char16;
6 char3 f1(char16 x) {
7 …alid reinterpretation: sizes of 'char3' (vector of 3 'char' values) and 'char16' (vector of 16 'ch…
10 char16 f3(int x) {
11 …return __builtin_astype(x, char16); // expected-error{{invalid reinterpretation: sizes of 'char16'…
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DUTF16Util.java265 public static boolean isSurrogate(char char16) in isSurrogate() argument
267 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isSurrogate()
268 char16 <= TRAIL_SURROGATE_MAX_VALUE; in isSurrogate()
277 public static boolean isTrailSurrogate(char char16) in isTrailSurrogate() argument
279 return (TRAIL_SURROGATE_MIN_VALUE <= char16 && in isTrailSurrogate()
280 char16 <= TRAIL_SURROGATE_MAX_VALUE); in isTrailSurrogate()
289 public static boolean isLeadSurrogate(char char16) in isLeadSurrogate() argument
291 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isLeadSurrogate()
292 char16 <= LEAD_SURROGATE_MAX_VALUE; in isLeadSurrogate()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DUTF16Util.java264 public static boolean isSurrogate(char char16) in isSurrogate() argument
266 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isSurrogate()
267 char16 <= TRAIL_SURROGATE_MAX_VALUE; in isSurrogate()
276 public static boolean isTrailSurrogate(char char16) in isTrailSurrogate() argument
278 return (TRAIL_SURROGATE_MIN_VALUE <= char16 && in isTrailSurrogate()
279 char16 <= TRAIL_SURROGATE_MAX_VALUE); in isTrailSurrogate()
288 public static boolean isLeadSurrogate(char char16) in isLeadSurrogate() argument
290 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isLeadSurrogate()
291 char16 <= LEAD_SURROGATE_MAX_VALUE; in isLeadSurrogate()
/external/libmojo/mojo/common/
Dcommon_type_converters.cc72 return base::string16(reinterpret_cast<const base::char16*>(&input.front()), in Convert()
73 input.size() / sizeof(base::char16)); in Convert()
78 Array<uint8_t> result(input.size() * sizeof(base::char16)); in Convert()
80 memcpy(&result.front(), input.c_str(), input.size() * sizeof(base::char16)); in Convert()
Dcommon_custom_types_struct_traits.cc14 out->assign(reinterpret_cast<const base::char16*>(view.data()), view.size()); in Read()
/external/libchrome/base/containers/
Dstack_container.h209 std::basic_string<char16,
211 StackAllocator<char16, stack_capacity> >,
215 std::basic_string<char16, in StackString16()
217 StackAllocator<char16, stack_capacity> >, in StackString16()
/external/spirv-llvm/lib/SPIRV/runtime/OpenCL/inc/
Dspirv_convert.h875 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16(half16);
876 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_rtz(half16);
877 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_rte(half16);
878 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_rtp(half16);
879 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_rtn(half16);
880 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_sat(half16);
881 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_sat_rtz(half16);
882 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_sat_rte(half16);
883 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_sat_rtp(half16);
884 __attribute__((overloadable)) char16 __spirv_ConvertFToS_Rchar16_sat_rtn(half16);
[all …]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF16.java164 char char16; in decodeLoop() local
185char16 = (char) (((toUBytesArray[0 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) <<… in decodeLoop()
187 if (!UTF16.isSurrogate(char16)) { in decodeLoop()
189 target.put(char16); in decodeLoop()
191 CoderResult cr = decodeTrail(source, target, offsets, char16); in decodeLoop()
/external/libchrome/base/
Dpickle.cc172 const char* read_from = GetReadPointerAndAdvance(len, sizeof(char16)); in ReadString16()
176 result->assign(reinterpret_cast<const char16*>(read_from), len); in ReadString16()
184 const char* read_from = GetReadPointerAndAdvance(len, sizeof(char16)); in ReadStringPiece16()
188 *result = StringPiece16(reinterpret_cast<const char16*>(read_from), len); in ReadStringPiece16()
221 AddBytes(static_cast<int>(value.size() * sizeof(char16))); in AddString16()
343 static_cast<int>(value.size()) * sizeof(char16)); in WriteString16()
/external/llvm/test/CodeGen/X86/
Dvshift-6.ll11 ; A = VSHLI(MVT::v8i16, r & (char16)15, 4)
15 ; C = VSHLI(MVT::v8i16, r & (char16)63, 2)
/external/clang/test/CodeGen/
Dext-vector.c295 typedef char char16 __attribute__((ext_vector_type(16))); typedef
299 char16 valA; in test17()
302 char16 destVal = valC ? valA : valB; in test17()
/external/clang/lib/Headers/
Dopencl-c.h82 typedef char char16 __attribute__((ext_vector_type(16))); typedef
4103 char16 __ovld __cnfn convert_char16_rte(char16);
4104 char16 __ovld __cnfn convert_char16_sat_rte(char16);
4105 char16 __ovld __cnfn convert_char16_rtz(char16);
4106 char16 __ovld __cnfn convert_char16_sat_rtz(char16);
4107 char16 __ovld __cnfn convert_char16_rtp(char16);
4108 char16 __ovld __cnfn convert_char16_sat_rtp(char16);
4109 char16 __ovld __cnfn convert_char16_rtn(char16);
4110 char16 __ovld __cnfn convert_char16_sat_rtn(char16);
4111 char16 __ovld __cnfn convert_char16(char16);
[all …]

12