sheredom / utf8.h

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

Common string pointer operation workalikes #43

Closed Mojofreem closed 6 years ago

Mojofreem commented 6 years ago

Added convenience functions for common string pointer operation workalikes:

Wrapped function definitions in a UTF8_IMPLEMENTATION macro, to control when object code is generated. This change requires the caller to define UTF8_IMPLEMENTATION prior to including the utf8.h header exactly once in a project.

If the compiler is C99 compliant, the above functions will be marked inline. This behavior can be overridden by defining UTF8_NO_INLINE. If not inlined, these functions will be exportable symbols.

Suggestions for changes/improvements are welcome.