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

Function utf8_next

src/eepp/core/string.cpp:1904–1908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1902#define iscont( p ) ( ( *( p ) & 0xC0 ) == 0x80 )
1903
1904static inline const char* utf8_next( const char* s, const char* e ) {
1905 while ( s < e && iscont( s + 1 ) )
1906 ++s;
1907 return s < e ? s + 1 : e;
1908}
1909
1910static inline size_t utf8_length( const char* s, const char* e ) {
1911 size_t i = 0;

Callers 1

utf8_lengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected