| 1844 | } |
| 1845 | |
| 1846 | int str_utf8_rewind(const char *str, int cursor) |
| 1847 | { |
| 1848 | while(cursor) |
| 1849 | { |
| 1850 | cursor--; |
| 1851 | if(str_utf8_isstart(*(str + cursor))) |
| 1852 | break; |
| 1853 | } |
| 1854 | return cursor; |
| 1855 | } |
| 1856 | |
| 1857 | int str_utf8_forward(const char *str, int cursor) |
| 1858 | { |
nothing calls this directly
no test coverage detected