Home
last modified time | relevance | path

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

1234

/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
54 typedef uint16_t char16; typedef
59 BASE_EXPORT int c16memcmp(const char16* s1, const char16* s2, size_t n);
60 BASE_EXPORT size_t c16len(const char16* s);
61 BASE_EXPORT const char16* c16memchr(const char16* s, char16 c, size_t n);
62 BASE_EXPORT char16* c16memmove(char16* s1, const char16* s2, size_t n);
63 BASE_EXPORT char16* c16memcpy(char16* s1, const char16* s2, size_t n);
64 BASE_EXPORT char16* c16memset(char16* s, char16 c, size_t n);
72 typedef char16 char_type;
143 typedef std::basic_string<char16,
[all …]
Dutf_string_conversions.cc35 struct SizeCoefficient<char16, char> {
48 struct SizeCoefficient<wchar_t, char16> {
66 void UnicodeAppendUnsafe(char16* out, int32_t* size, uint32_t code_point) { in UnicodeAppendUnsafe()
105 bool DoUTFConversion(const char16* src, in DoUTFConversion()
111 auto ConvertSingleChar = [&success](char16 in) -> int32_t { in DoUTFConversion()
217 bool UTF16ToUTF8(const char16* src, size_t src_len, std::string* output) { in UTF16ToUTF8()
243 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide()
266 bool UTF16ToWide(const char16* src, size_t src_len, std::wstring* output) { in UTF16ToWide()
Dutf_string_conversions_fuzzer.cc27 reinterpret_cast<const base::char16*>(data), size / 2); in LLVMFuzzerTestOneInput()
29 base::UTF16ToWide(reinterpret_cast<const base::char16*>(data), size / 2, in LLVMFuzzerTestOneInput()
32 base::UTF16ToUTF8(reinterpret_cast<const base::char16*>(data), size / 2, in LLVMFuzzerTestOneInput()
Dold_utf_string_conversions.h18 using base::char16;
42 BASE_EXPORT bool UTF16ToWide(const char16* src,
49 BASE_EXPORT bool UTF16ToUTF8(const char16* src,
Dstring_util_constants.cc41 const char16 kWhitespaceUTF16[] = {
55 const char16 kWhitespaceASCIIAs16[] = {
Dstring_util.h94 inline char16 ToLowerASCII(char16 c) { in ToLowerASCII()
103 inline char16 ToUpperASCII(char16 c) { in ToUpperASCII()
166 BASE_EXPORT extern const char16 kWhitespaceUTF16[]; // Includes Unicode.
168 BASE_EXPORT extern const char16 kWhitespaceASCIIAs16[]; // No unicode.
427 BASE_EXPORT char16* WriteInto(string16* str, size_t length_with_null);
Dutf_string_conversion_utils.cc33 bool ReadUnicodeCharacter(const char16* src, in ReadUnicodeCharacter()
96 output->push_back(static_cast<char16>(code_point)); in WriteUnicodeCharacter()
129 template void PrepareForUTF8Output(const char16*, size_t, std::string*);
/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/libchrome/base/i18n/
Drtl.h21 const char16 kRightToLeftMark = 0x200F;
22 const char16 kLeftToRightMark = 0x200E;
23 const char16 kLeftToRightEmbeddingMark = 0x202A;
24 const char16 kRightToLeftEmbeddingMark = 0x202B;
25 const char16 kPopDirectionalFormatting = 0x202C;
26 const char16 kLeftToRightOverride = 0x202D;
27 const char16 kRightToLeftOverride = 0x202E;
Dchar_iterator.cc39 : str_(reinterpret_cast<const char16*>(str->data())), in UTF16CharIterator()
49 UTF16CharIterator::UTF16CharIterator(const char16* str, size_t str_len) in UTF16CharIterator()
Dchar_iterator.h84 UTF16CharIterator(const char16* str, size_t str_len);
111 const char16* str_;
/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/llvm-project/clang/test/SemaCXX/
Dvector.cpp7 typedef char char16 __attribute__ ((__vector_size__ (16))); typedef
13 void f0(char16); // expected-note 0+{{candidate}}
15 void f0_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f0_test()
28 int &f1(char16);
31 void f1_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f1_test()
40 void f2_test(char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e) { in f2_test()
53 void conditional(bool Cond, char16 c16, longlong16 ll16, char16_e c16e, in conditional()
81 (void)(char16)ll16; in casts()
85 (void)(char16)ll16e; in casts()
91 (void)char16(ll16); in casts()
[all …]
/external/llvm-project/clang/test/CodeGen/
Darm-swiftcall.c69 typedef char char16 __attribute__((ext_vector_type(16))); typedef
751 char16 c0;
758 char16 c0;
759 char16 c1;
766 char16 c0;
767 char16 c1;
768 char16 c2;
775 char16 c0;
776 char16 c1;
777 char16 c2;
[all …]
D64bit-swiftcall.c77 typedef char char16 __attribute__((ext_vector_type(16))); typedef
741 char16 c0;
748 char16 c0;
749 char16 c1;
756 char16 c0;
757 char16 c1;
758 char16 c2;
765 char16 c0;
766 char16 c1;
767 char16 c2;
[all …]
/external/cldr/tools/java/com/ibm/icu/dev/test/
DUTF16Util.java263 public static boolean isSurrogate(char char16) in isSurrogate() argument
265 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isSurrogate()
266 char16 <= TRAIL_SURROGATE_MAX_VALUE; in isSurrogate()
275 public static boolean isTrailSurrogate(char char16) in isTrailSurrogate() argument
277 return (TRAIL_SURROGATE_MIN_VALUE <= char16 && in isTrailSurrogate()
278 char16 <= TRAIL_SURROGATE_MAX_VALUE); in isTrailSurrogate()
287 public static boolean isLeadSurrogate(char char16) in isLeadSurrogate() argument
289 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isLeadSurrogate()
290 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DUTF16Util.java268 public static boolean isSurrogate(char char16) in isSurrogate() argument
270 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isSurrogate()
271 char16 <= TRAIL_SURROGATE_MAX_VALUE; in isSurrogate()
280 public static boolean isTrailSurrogate(char char16) in isTrailSurrogate() argument
282 return (TRAIL_SURROGATE_MIN_VALUE <= char16 && in isTrailSurrogate()
283 char16 <= TRAIL_SURROGATE_MAX_VALUE); in isTrailSurrogate()
292 public static boolean isLeadSurrogate(char char16) in isLeadSurrogate() argument
294 return LEAD_SURROGATE_MIN_VALUE <= char16 && in isLeadSurrogate()
295 char16 <= LEAD_SURROGATE_MAX_VALUE; in isLeadSurrogate()
/external/libchrome/mojo/public/cpp/base/
Dstring16_mojom_traits.cc17 out->assign(reinterpret_cast<const base::char16*>(view.data()), view.size()); in Read()
27 base::make_span(bytes, str.size() * sizeof(base::char16))); in data()
37 if (buffer.size() % sizeof(base::char16)) in Read()
39 *out = base::string16(reinterpret_cast<const base::char16*>(buffer.data()), in Read()
40 buffer.size() / sizeof(base::char16)); in Read()
/external/llvm-project/clang/test/SemaOpenCL/
Das_type.cl3 char3 f1(char16 x) {
4 …erpretation: sizes of 'char3' (vector of 3 'char' values) and '__private char16' (vector of 16 'ch…
7 char16 f3(int x) {
8 …return __builtin_astype(x, char16); // expected-error{{invalid reinterpretation: sizes of 'char16'…
/external/libchrome/components/policy/core/common/
Dpreg_parser.cc64 const base::char16 kDelimBracketOpen = L'[';
65 const base::char16 kDelimBracketClose = L']';
66 const base::char16 kDelimSemicolon = L';';
69 const base::char16 kRegistryPathSeparator[] = {L'\\', L'\0'};
87 end - *cursor < static_cast<ptrdiff_t>(sizeof(base::char16))) in NextChar()
91 *cursor += sizeof(base::char16); in NextChar()
138 size_t len = data.size() / sizeof(base::char16); in DecodePRegStringValue()
144 const base::char16* chars = in DecodePRegStringValue()
145 reinterpret_cast<const base::char16*>(data.data()); in DecodePRegStringValue()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dabseil-str-cat-append.cpp3 typedef unsigned __INT16_TYPE__ char16; typedef
49 typedef basic_string<char16, std::char_traits<char16>, std::allocator<char16>>
Dreadability-redundant-string-cstr.cpp3 typedef unsigned __INT16_TYPE__ char16; typedef
49 typedef basic_string<char16, std::char_traits<char16>, std::allocator<char16>> u16string;
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetUTF16.java160 char char16; in decodeLoop() local
181char16 = (char) (((toUBytesArray[0 ^ actualEndianXOR] & UConverterConstants.UNSIGNED_BYTE_MASK) <<… in decodeLoop()
183 if (!UTF16.isSurrogate(char16)) { in decodeLoop()
185 target.put(char16); in decodeLoop()
187 CoderResult cr = decodeTrail(source, target, offsets, char16); in decodeLoop()

1234