sheredom / utf8.h

📚 single header utf8 string functions for C and C++
The Unlicense
1.71k stars 122 forks source link

Procedure for adding a single codepoint to an existing string #26

Closed codecat closed 8 years ago

codecat commented 8 years ago

It'd be nice to have a function for this. Perhaps a function that returns how many bytes a codepoint needs would be enough.

sheredom commented 8 years ago

Hey @angelog! Just back from holiday - I'll certainly look into adding this, really good idea.

codecat commented 8 years ago

Any update on this? Or maybe some pointers so that I could implement this myself? Could do a pull request. Looking to implement this as part of a product beta release this week :astonished:

sheredom commented 8 years ago

Hey @angelog! I'll not get to this this week (away on work stuff!)

I'd happily accept a PR from yourself though if you are willing to do the work!

codecat commented 8 years ago

I will do some research later today and get back to you. Thanks! :)

sheredom commented 8 years ago

Thanks for solving this @angelog !