Lines Matching refs:char16_t
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()
117 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
120 char16_t* str = (char16_t*)buf->data(); in String16()
129 String16::String16(const char16_t* o, size_t len) in String16()
131 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16()
134 char16_t* str = (char16_t*)buf->data(); in String16()
135 memcpy(str, o, len*sizeof(char16_t)); in String16()
166 return SharedBuffer::sizeFromData(mString)/sizeof(char16_t)-1; in size()
197 status_t String16::setTo(const char16_t* other) in setTo()
202 status_t String16::setTo(const char16_t* other, size_t len) in setTo()
205 ->editResize((len+1)*sizeof(char16_t)); in setTo()
207 char16_t* str = (char16_t*)buf->data(); in setTo()
208 memmove(str, other, len*sizeof(char16_t)); in setTo()
228 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append()
230 char16_t* str = (char16_t*)buf->data(); in append()
231 memcpy(str+myLen, other, (otherLen+1)*sizeof(char16_t)); in append()
238 status_t String16::append(const char16_t* chrs, size_t otherLen) in append()
249 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append()
251 char16_t* str = (char16_t*)buf->data(); in append()
252 memcpy(str+myLen, chrs, otherLen*sizeof(char16_t)); in append()
260 status_t String16::insert(size_t pos, const char16_t* chrs) in insert()
265 status_t String16::insert(size_t pos, const char16_t* chrs, size_t len) in insert()
284 ->editResize((myLen+len+1)*sizeof(char16_t)); in insert()
286 char16_t* str = (char16_t*)buf->data(); in insert()
288 memmove(str+pos+len, str+pos, (myLen-pos)*sizeof(char16_t)); in insert()
290 memcpy(str+pos, chrs, len*sizeof(char16_t)); in insert()
301 ssize_t String16::findFirst(char16_t c) const in findFirst()
303 const char16_t* str = string(); in findFirst()
304 const char16_t* p = str; in findFirst()
305 const char16_t* e = p + size(); in findFirst()
315 ssize_t String16::findLast(char16_t c) const in findLast()
317 const char16_t* str = string(); in findLast()
318 const char16_t* p = str; in findLast()
319 const char16_t* e = p + size(); in findLast()
336 bool String16::startsWith(const char16_t* prefix) const in startsWith()
343 bool String16::contains(const char16_t* chrs) const in contains()
351 const char16_t* str = string(); in makeLower()
352 char16_t* edit = NULL; in makeLower()
354 const char16_t v = str[i]; in makeLower()
361 edit = (char16_t*)buf->data(); in makeLower()
370 status_t String16::replaceAll(char16_t replaceThis, char16_t withThis) in replaceAll()
373 const char16_t* str = string(); in replaceAll()
374 char16_t* edit = NULL; in replaceAll()
382 edit = (char16_t*)buf->data(); in replaceAll()
406 ->editResize((N+1)*sizeof(char16_t)); in remove()
410 char16_t* str = (char16_t*)buf->data(); in remove()
411 memmove(str, str+begin, (N-begin+1)*sizeof(char16_t)); in remove()
415 ->editResize((len+1)*sizeof(char16_t)); in remove()
417 char16_t* str = (char16_t*)buf->data(); in remove()