MCPcopy Create free account
hub / github.com/ddnet/ddnet / str_utf8_forward

Function str_utf8_forward

src/base/str.cpp:1212–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212int str_utf8_forward(const char *str, int cursor)
1213{
1214 const char *ptr = str + cursor;
1215 if(str_utf8_decode(&ptr) == 0)
1216 {
1217 return cursor;
1218 }
1219 return ptr - str;
1220}
1221
1222int str_utf8_check(const char *str)
1223{

Callers 5

MoveCursorMethod · 0.85
str_utf8_copy_numFunction · 0.85

Calls 1

str_utf8_decodeFunction · 0.85

Tested by

no test coverage detected