You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the time what you want is the length of the utf8 or utf16 encoding: value.Utf8Value().size() or value.Utf16Value().size().
Maybe there should be a Napi::String::Length() method that calls napi_get_value_string_length() to get the character length. Or maybe we should remove napi_get_value_string_length(), since it's not very useful and a potential source of localization bugs if it is used incorrectly.
Is there any reason why we don't have Length method for Napi::String?
The text was updated successfully, but these errors were encountered: