Home
last modified time | relevance | path

Searched refs:utf16_length (Results 1 - 4 of 4) sorted by relevance

/third_party/node/src/inspector/
H A Dnode_string.cc23 size_t utf16_length = simdutf::convert_utf8_to_utf16( in builderAppendQuotedString() local
25 // We have that utf16_length == expected_utf16_length if and only in builderAppendQuotedString()
27 if (utf16_length != 0) { in builderAppendQuotedString()
28 CHECK_EQ(expected_utf16_length, utf16_length); in builderAppendQuotedString()
30 utf16_length, in builderAppendQuotedString() local
44 size_t utf16_length = simdutf::convert_utf8_to_utf16( in parseJSON() local
46 // We have that utf16_length == expected_utf16_length if and only in parseJSON()
48 if (utf16_length == 0) return nullptr; // We had an invalid UTF-8 input. in parseJSON()
49 CHECK_EQ(expected_utf16_length, utf16_length); in parseJSON()
51 utf16_length); in parseJSON()
[all...]
H A Dmain_thread_interface.cc292 size_t utf16_length = simdutf::convert_utf8_to_utf16( in Utf8ToStringView() local
294 StringView view(reinterpret_cast<uint16_t*>(buffer.out()), utf16_length); in Utf8ToStringView() local
/third_party/node/deps/v8/src/strings/
H A Dunicode-decoder.h59 int utf16_length() const { return utf16_length_; } in utf16_length() function in v8::internal::final
/third_party/node/deps/v8/src/heap/
H A Dfactory.cc653 std::unique_ptr<uint8_t[]> buffer(new uint8_t[decoder.utf16_length()]); in InternalizeUtf8String()
656 base::Vector<const uint8_t>(buffer.get(), decoder.utf16_length())); in InternalizeUtf8String()
658 std::unique_ptr<uint16_t[]> buffer(new uint16_t[decoder.utf16_length()]); in InternalizeUtf8String()
661 base::Vector<const base::uc16>(buffer.get(), decoder.utf16_length())); in InternalizeUtf8String()
703 if (decoder.utf16_length() == 0) return empty_string(); in NewStringFromUtf8()
710 NewRawOneByteString(decoder.utf16_length(), allocation), String); in NewStringFromUtf8()
721 NewRawTwoByteString(decoder.utf16_length(), allocation), String); in NewStringFromUtf8()
752 DCHECK_GT(decoder.utf16_length(), 0); in NewStringFromUtf8SubString()
759 NewRawOneByteString(decoder.utf16_length(), allocation), String); in NewStringFromUtf8SubString()
773 NewRawTwoByteString(decoder.utf16_length(), allocatio in NewStringFromUtf8SubString()
[all...]

Completed in 6 milliseconds