diff options
Diffstat (limited to 'louloulibs/utils/encoding.hpp')
-rw-r--r-- | louloulibs/utils/encoding.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/louloulibs/utils/encoding.hpp b/louloulibs/utils/encoding.hpp index 6b7ccd2..3f55055 100644 --- a/louloulibs/utils/encoding.hpp +++ b/louloulibs/utils/encoding.hpp @@ -6,6 +6,11 @@ namespace utils { /** + * Return the size, in bytes, of the next UTF-8 codepoint, based on + * the given char. + */ + std::size_t get_next_codepoint_size(const unsigned char c); + /** * Returns true if the given null-terminated string is valid utf-8. * * Based on http://en.wikipedia.org/wiki/UTF-8#Description |