A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nodejs/node/commit/8b5ada4b31 below:

use Utf8LengthV2() instead of Utf8Length() · nodejs/node@8b5ada4 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -742,7 +742,7 @@ uint32_t FastByteLengthUtf8(

742 742

Local<String> sourceStr = sourceValue.As<String>();

743 743 744 744

if (!sourceStr->IsExternalOneByte()) {

745 -

return sourceStr->Utf8Length(isolate);

745 +

return sourceStr->Utf8LengthV2(isolate);

746 746

}

747 747

auto source = sourceStr->GetExternalOneByteStringResource();

748 748

// For short inputs, the function call overhead to simdutf is maybe

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4