/system/core/libutils/ |
D | String16.cpp | 27 static inline char16_t* getEmptyString() { in getEmptyString() 29 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in getEmptyString() 30 char16_t* str = static_cast<char16_t*>(buf->data()); in getEmptyString() 36 return static_cast<char16_t*>(gEmptyStringBuf->data()); in getEmptyString() 41 static char16_t* allocFromUTF8(const char* u8str, size_t u8len) in allocFromUTF8() 52 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() 55 char16_t* u16str = (char16_t*)buf->data(); in allocFromUTF8() 69 static char16_t* allocFromUTF16(const char16_t* u16str, size_t u16len) { in allocFromUTF16() 70 if (u16len >= SIZE_MAX / sizeof(char16_t)) { in allocFromUTF16() 75 SharedBuffer* buf = SharedBuffer::alloc((u16len + 1) * sizeof(char16_t)); in allocFromUTF16() [all …]
|
D | Unicode.cpp | 224 int strcmp16(const char16_t *s1, const char16_t *s2) in strcmp16() 226 char16_t ch; in strcmp16() 238 int strncmp16(const char16_t *s1, const char16_t *s2, size_t n) in strncmp16() 240 char16_t ch; in strncmp16() 257 char16_t *strcpy16(char16_t *dst, const char16_t *src) in strcpy16() 259 char16_t *q = dst; in strcpy16() 260 const char16_t *p = src; in strcpy16() 261 char16_t ch; in strcpy16() 270 size_t strlen16(const char16_t *s) in strlen16() 272 const char16_t *ss = s; in strlen16() [all …]
|
D | Unicode_test.cpp | 37 char16_t const * const kSearchString = u"I am a leaf on the wind."; 103 char16_t output[1 + 1 + 1 + 2 + 1]; // Room for NULL in TEST_F() 138 char16_t* const emptyString = (char16_t* const)((char*)memptr + alignment - 4); in TEST_F() 139 *emptyString = (char16_t)0; in TEST_F() 143 ASSERT_EQ(strstr16((char16_t*)memptr, emptyString), (char16_t*)memptr) in TEST_F() 152 const char16_t* result = strstr16(kSearchString, kSearchString); in TEST_F() 158 const char16_t* result = strstr16(kSearchString, u"I am"); in TEST_F() 165 const char16_t* result = strstr16(kSearchString, u"wind."); in TEST_F() 170 const char16_t* result = strstr16(kSearchString, u"leaf"); in TEST_F() 175 const char16_t* result = strstr16(kSearchString, u"soar"); in TEST_F()
|
D | String8.cpp | 77 static char* allocFromUTF16(const char16_t* in, size_t len) in allocFromUTF16() 168 String8::String8(const char16_t* o) in String8() 173 String8::String8(const char16_t* o, size_t len) in String8() 250 status_t String8::setTo(const char16_t* other, size_t len) in setTo()
|
/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 *strstr16(const char16_t*, const char16_t*); 40 int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2); 104 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len); 111 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len); 158 char16_t* utf8_to_utf16_no_null_terminator( [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; 75 status_t setTo(const char16_t* other); 76 status_t setTo(const char16_t* other, size_t len); 82 status_t append(const char16_t* other, size_t len); 89 status_t insert(size_t pos, const char16_t* chrs); 91 const char16_t* chrs, size_t len); 93 ssize_t findFirst(char16_t c) const; 94 ssize_t findLast(char16_t c) const; [all …]
|
D | String8.h | 57 explicit String8(const char16_t* o); 58 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/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/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/ |
D | strdup8to16.cpp | 44 extern char16_t * strdup8to16 (const char* s, size_t *out_len) in strdup8to16() 46 char16_t *ret; in strdup8to16() 54 if (len && SIZE_MAX/len < sizeof(char16_t)) in strdup8to16() 58 ret = (char16_t *) malloc (sizeof(char16_t) * len); in strdup8to16() 152 extern char16_t * strcpy8to16 (char16_t *utf16Str, const char*utf8Str, in strcpy8to16() 155 char16_t *dest = utf16Str; in strcpy8to16() 163 *dest++ = (char16_t) ret; in strcpy8to16() 186 extern char16_t * strcpylen8to16 (char16_t *utf16Str, const char*utf8Str, in strcpylen8to16() 191 char16_t *dest = utf16Str; in strcpylen8to16() 200 *dest++ = (char16_t) ret; in strcpylen8to16()
|
D | strdup16to8.cpp | 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/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 | 137 Status RepeatChar(char16_t token, char16_t* _aidl_return) override { in RepeatChar() 222 Status ReverseChar(const vector<char16_t>& input, in ReverseChar() 223 vector<char16_t>* repeated, in ReverseChar() 224 vector<char16_t>* _aidl_return) override { in ReverseChar()
|
/system/core/adb/client/ |
D | fastdeploy.cpp | 148 static std::string get_string_from_utf16(const char16_t* input, int input_len) { in get_string_from_utf16() 189 const char16_t* element_name = tree.getElementName(&element_name_length); in get_packagename_from_apk() 197 const char16_t* attribute_name_text = in get_packagename_from_apk() 206 const char16_t* attribute_value_text = in get_packagename_from_apk()
|
/system/libhwbinder/ |
D | Parcel.cpp | 698 status_t Parcel::writeString16(const char16_t* str, size_t len) in writeString16() 704 len *= sizeof(char16_t); in writeString16() 705 uint8_t* data = (uint8_t*)writeInplace(len+sizeof(char16_t)); in writeString16() 708 *reinterpret_cast<char16_t*>(data+len) = 0; in writeString16() 1344 const char16_t* str = readString16Inplace(&len); in readString16() 1376 const char16_t* str = readString16Inplace(&len); in readString16() 1386 const char16_t* Parcel::readString16Inplace(size_t* outLen) const in readString16Inplace() 1392 const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t)); in readString16Inplace()
|
/system/libhwbinder/include/hwbinder/ |
D | Parcel.h | 97 status_t writeString16(const char16_t* str, size_t len); 153 const char16_t* readString16Inplace(size_t* outLen) const;
|
/system/tools/hidl/ |
D | hidl-gen_y.yy | 130 "char", "char16_t", "char32_t", "class", "compl", "concept", "const", "constexpr",
|