MCPcopy Create free account
hub / github.com/SpartanJ/eepp / utf8Length

Method utf8Length

src/eepp/core/string.cpp:1917–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915}
1916
1917size_t String::utf8Length( const std::string& utf8String ) {
1918 return utf8_length( utf8String.c_str(), utf8String.c_str() + utf8String.length() );
1919}
1920
1921size_t String::utf8Length( const std::string_view& utf8String ) {
1922 return utf8_length( utf8String.data(), utf8String.data() + utf8String.length() );

Callers

nothing calls this directly

Calls 4

utf8_lengthFunction · 0.85
c_strMethod · 0.80
lengthMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected