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

Function utf8_length

src/eepp/core/string.cpp:1910–1915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1908}
1909
1910static inline size_t utf8_length( const char* s, const char* e ) {
1911 size_t i = 0;
1912 for ( i = 0; s < e; ++i )
1913 s = utf8_next( s, e );
1914 return i;
1915}
1916
1917size_t String::utf8Length( const std::string& utf8String ) {
1918 return utf8_length( utf8String.c_str(), utf8String.c_str() + utf8String.length() );

Callers 1

utf8LengthMethod · 0.85

Calls 1

utf8_nextFunction · 0.85

Tested by

no test coverage detected