Lines Matching refs:utf16_length
162 int32_t utf16_length, in AllocFromUtf16() argument
164 CHECK(utf16_data_in != nullptr || utf16_length == 0); in AllocFromUtf16()
167 String::AllASCII<uint16_t>(utf16_data_in, utf16_length); in AllocFromUtf16()
168 int32_t length_with_flag = String::GetFlaggedCount(utf16_length, compressible); in AllocFromUtf16()
175 for (int i = 0; i < utf16_length; ++i) { in AllocFromUtf16()
180 memcpy(array, utf16_data_in, utf16_length * sizeof(uint16_t)); in AllocFromUtf16()
193 int32_t utf16_length, in AllocFromModifiedUtf8() argument
195 return AllocFromModifiedUtf8(self, utf16_length, utf8_data_in, strlen(utf8_data_in)); in AllocFromModifiedUtf8()
199 int32_t utf16_length, in AllocFromModifiedUtf8() argument
203 const bool compressible = kUseStringCompression && (utf16_length == utf8_length); in AllocFromModifiedUtf8()
204 const int32_t utf16_length_with_flag = String::GetFlaggedCount(utf16_length, compressible); in AllocFromModifiedUtf8()
211 memcpy(string->GetValueCompressed(), utf8_data_in, utf16_length * sizeof(uint8_t)); in AllocFromModifiedUtf8()
214 ConvertModifiedUtf8ToUtf16(utf16_data_out, utf16_length, utf8_data_in, utf8_length); in AllocFromModifiedUtf8()