/system/core/libutils/include/utils/ |
D | Unicode.h | 26 int strcmp16(const char16_t *, const char16_t *); 27 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n); 28 size_t strlen16(const char16_t *); 29 size_t strnlen16(const char16_t *, size_t); 30 char16_t *strcpy16(char16_t *, const char16_t *); 31 char16_t *strncpy16(char16_t *, const char16_t *, size_t); 32 char16_t *strstr16(const char16_t*, const char16_t*); 41 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2); 44 int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2); 108 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len); [all …]
|
D | String16.h | 60 explicit String16(const char16_t* o); 61 explicit String16(const char16_t* o, size_t len); 68 inline const char16_t* string() const; 76 status_t setTo(const char16_t* other); 77 status_t setTo(const char16_t* other, size_t len); 83 status_t append(const char16_t* other, size_t len); 90 status_t insert(size_t pos, const char16_t* chrs); 92 const char16_t* chrs, size_t len); 94 ssize_t findFirst(char16_t c) const; 95 ssize_t findLast(char16_t c) const; [all …]
|
D | String8.h | 56 explicit String8(const char16_t* o); 57 explicit String8(const char16_t* o, size_t numChars); 86 status_t setTo(const char16_t* other, size_t numChars);
|
D | PropertyMap.h | 98 status_t parseCharacterLiteral(char16_t* outCharacter);
|
/system/core/libutils/ |
D | String16.cpp | 28 static char16_t* gEmptyString = NULL; 30 static inline char16_t* getEmptyString() in getEmptyString() 38 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16() 39 char16_t* str = (char16_t*)buf->data(); in initialize_string16() 54 static char16_t* allocFromUTF8(const char* u8str, size_t u8len) in allocFromUTF8() 65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() 68 char16_t* u16str = (char16_t*)buf->data(); in allocFromUTF8() 96 char16_t* data = static_cast<char16_t*>( in String16() 97 SharedBuffer::alloc(sizeof(char16_t))->data()); in String16() 114 String16::String16(const char16_t* o) in String16() [all …]
|
D | Unicode.cpp | 212 int strcmp16(const char16_t *s1, const char16_t *s2) in strcmp16() 214 char16_t ch; in strcmp16() 226 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n) in strncmp16() 228 char16_t ch; in strncmp16() 245 char16_t *strcpy16(char16_t *dst, const char16_t *src) in strcpy16() 247 char16_t *q = dst; in strcpy16() 248 const char16_t *p = src; in strcpy16() 249 char16_t ch; in strcpy16() 258 size_t strlen16(const char16_t *s) in strlen16() 260 const char16_t *ss = s; in strlen16() [all …]
|
D | String8.cpp | 101 static char* allocFromUTF16(const char16_t* in, size_t len) in allocFromUTF16() 192 String8::String8(const char16_t* o) in String8() 197 String8::String8(const char16_t* o, size_t len) in String8() 274 status_t String8::setTo(const char16_t* other, size_t len) in setTo()
|
/system/core/libcutils/include/cutils/ |
D | jstring.h | 28 typedef uint16_t char16_t; typedef 32 extern char * strndup16to8 (const char16_t* s, size_t n); 33 extern size_t strnlen16to8 (const char16_t* s, size_t n); 34 extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n); 36 extern char16_t * strdup8to16 (const char* s, size_t *out_len); 38 extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len); 39 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,
|
/system/core/libcutils/include_vndk/cutils/ |
D | jstring.h | 28 typedef uint16_t char16_t; typedef 32 extern char * strndup16to8 (const char16_t* s, size_t n); 33 extern size_t strnlen16to8 (const char16_t* s, size_t n); 34 extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n); 36 extern char16_t * strdup8to16 (const char* s, size_t *out_len); 38 extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len); 39 extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,
|
/system/core/libcutils/ |
D | strdup8to16.c | 43 extern char16_t * strdup8to16 (const char* s, size_t *out_len) in strdup8to16() 45 char16_t *ret; in strdup8to16() 53 if (len && SIZE_MAX/len < sizeof(char16_t)) in strdup8to16() 57 ret = (char16_t *) malloc (sizeof(char16_t) * len); in strdup8to16() 151 extern char16_t * strcpy8to16 (char16_t *utf16Str, const char*utf8Str, in strcpy8to16() 154 char16_t *dest = utf16Str; in strcpy8to16() 162 *dest++ = (char16_t) ret; in strcpy8to16() 185 extern char16_t * strcpylen8to16 (char16_t *utf16Str, const char*utf8Str, in strcpylen8to16() 190 char16_t *dest = utf16Str; in strcpylen8to16() 199 *dest++ = (char16_t) ret; in strcpylen8to16()
|
D | strdup16to8.c | 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) in strnlen16to8() 109 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) in strncpy16to8() 146 char * strndup16to8 (const char16_t* s, size_t n) in strndup16to8()
|
/system/core/libutils/tests/ |
D | Unicode_test.cpp | 33 char16_t const * const kSearchString = u"I am a leaf on the wind."; 99 char16_t output[1 + 1 + 1 + 2 + 1]; // Room for NULL in TEST_F() 123 const char16_t* result = strstr16(kSearchString, kSearchString); in TEST_F() 129 const char16_t* result = strstr16(kSearchString, u"I am"); in TEST_F() 136 const char16_t* result = strstr16(kSearchString, u"wind."); in TEST_F() 141 const char16_t* result = strstr16(kSearchString, u"leaf"); in TEST_F() 146 const char16_t* result = strstr16(kSearchString, u"soar"); in TEST_F()
|
/system/tools/aidl/tests/ |
D | aidl_test_client_primitives.cpp | 65 !RepeatPrimitive(s, &ITestService::RepeatChar, char16_t{'A'}) || in ConfirmPrimitiveRepeat() 131 {char16_t{'A'}, char16_t{'B'}, char16_t{'C'}}) || in ConfirmReverseArrays()
|
D | aidl_test_service.cpp | 136 Status RepeatChar(char16_t token, char16_t* _aidl_return) override { in RepeatChar() 221 Status ReverseChar(const vector<char16_t>& input, in ReverseChar() 222 vector<char16_t>* repeated, in ReverseChar() 223 vector<char16_t>* _aidl_return) override { in ReverseChar()
|
/system/libhwbinder/ |
D | Parcel.cpp | 703 status_t Parcel::writeString16(const char16_t* str, size_t len) in writeString16() 709 len *= sizeof(char16_t); in writeString16() 710 uint8_t* data = (uint8_t*)writeInplace(len+sizeof(char16_t)); in writeString16() 713 *reinterpret_cast<char16_t*>(data+len) = 0; in writeString16() 1339 const char16_t* str = readString16Inplace(&len); in readString16() 1371 const char16_t* str = readString16Inplace(&len); in readString16() 1381 const char16_t* Parcel::readString16Inplace(size_t* outLen) const in readString16Inplace() 1387 const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t)); in readString16Inplace()
|
/system/libhwbinder/include/hwbinder/ |
D | Parcel.h | 98 status_t writeString16(const char16_t* str, size_t len); 154 const char16_t* readString16Inplace(size_t* outLen) const;
|
/system/tools/hidl/ |
D | hidl-gen_y.yy | 98 "char", "char16_t", "char32_t", "class", "compl", "concept", "const", "constexpr",
|