We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode characters can have different visual widths, it would help if utf8.h had a builtin function to retrieve that.
A simple implementation can be found here. https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
simple usage of the above code with utf8.h
int codepoint; void *v = utf8codepoint(text_ptr, &codepoint); int w = mk_wcwidth((wchar_t)codepoint);
The text was updated successfully, but these errors were encountered:
Happy to accept a PR that added something like utf8codepointvisualwidth that does this.
utf8codepointvisualwidth
Sorry, something went wrong.
No branches or pull requests
Unicode characters can have different visual widths, it would help if utf8.h had a builtin function to retrieve that.
A simple implementation can be found here. https://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
simple usage of the above code with utf8.h
The text was updated successfully, but these errors were encountered: