| 1210 | } |
| 1211 | |
| 1212 | int 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 | |
| 1222 | int str_utf8_check(const char *str) |
| 1223 | { |
no test coverage detected