• Home
  • Raw
  • Download

Lines Matching refs:u2

130 void dvmConvertUtf8ToUtf16(u2* utf16Str, const char* utf8Str)  in dvmConvertUtf8ToUtf16()
140 static int utf16_utf8ByteLen(const u2* utf16Str, int len) in utf16_utf8ByteLen()
167 static void convertUtf16ToUtf8(char* utf8Str, const u2* utf16Str, int len) in convertUtf16ToUtf8()
197 static inline u4 computeUtf16Hash(const u2* utf16Str, size_t len) in computeUtf16Hash()
216 hashCode = computeUtf16Hash((u2*)(void*)chars->contents + offset, len); in dvmComputeStringHash()
249 dvmConvertUtf8ToUtf16((u2*)(void*)chars->contents, utf8Str); in dvmCreateStringFromCstrAndLength()
251 u4 hashCode = computeUtf16Hash((u2*)(void*)chars->contents, utf16Length); in dvmCreateStringFromCstrAndLength()
260 StringObject* dvmCreateStringFromUnicode(const u2* unichars, int len) in dvmCreateStringFromUnicode()
271 if (len > 0) memcpy(chars->contents, unichars, len * sizeof(u2)); in dvmCreateStringFromUnicode()
273 u4 hashCode = computeUtf16Hash((u2*)(void*)chars->contents, len); in dvmCreateStringFromUnicode()
295 const u2* data = (const u2*)(void*)chars->contents + offset; in dvmCreateCstrFromString()
311 const u2* data = jstr->chars() + start; in dvmGetStringUtfRegion()
323 const u2* data = (const u2*)(void*)chars->contents + offset; in utfLength()
339 const u2* StringObject::chars() const in chars()
344 return (const u2*)(void*)chars->contents + offset; in chars()
380 return memcmp((const u2*)(void*)chars1->contents + offset1, in dvmHashcmpStrings()
381 (const u2*)(void*)chars2->contents + offset2, in dvmHashcmpStrings()
382 len1 * sizeof(u2)); in dvmHashcmpStrings()