Lines Matching defs:utf16Len
56 auto utf16Len = base::utf_helper::Utf8ToUtf16Size(utf8Data, utf8Len);
57 string = CreateLineStringWithSpaceType(vm, utf16Len, false, type);
61 base::utf_helper::ConvertRegionUtf8ToUtf16(utf8Data, string->GetDataUtf16Writable(), utf8Len, utf16Len);
62 ASSERT(len == utf16Len);
85 inline EcmaString *EcmaString::CreateUtf16StringFromUtf8(const EcmaVM *vm, const uint8_t *utf8Data, uint32_t utf16Len,
88 if (utf16Len == 0) {
91 auto string = CreateLineStringWithSpaceType(vm, utf16Len, false, type);
94 utf8Data, string->GetDataUtf16Writable(), utf::Mutf8Size(utf8Data), utf16Len, 0);
95 if (len < utf16Len) {
114 inline EcmaString *EcmaString::CreateFromUtf16(const EcmaVM *vm, const uint16_t *utf16Data, uint32_t utf16Len,
117 if (utf16Len == 0) {
120 auto string = CreateLineStringWithSpaceType(vm, utf16Len, canBeCompress, type);
124 CopyChars(string->GetDataUtf8Writable(), utf16Data, utf16Len);
126 uint32_t len = utf16Len * (sizeof(uint16_t) / sizeof(uint8_t));