Closed felselva closed 6 years ago
Hey there!
So I've worded the documentation for utf8codepoint poorly - the out_codepoint parameter returns the CURRENT codepoint in the string (EG. the codepoint that starts at the utf8_string in your example above), and the pointer returned from the function is the pointer to the next location in the utf8_string that contains a codepoint.
Is my explanation good enough, or do you want me to try again? If so I'll update the documentation to be clearer!
Oh, thanks, that solves the problem!
This code is following the example of the PR https://github.com/sheredom/utf8.h/pull/21 to iterate. However,
utf8codepoint
is for getting the pointer and the codepoint of the next character. How can I get the codepoint of the first character?