Add get_next_codepoint_size

This commit is contained in:
louiz’
2016-06-15 00:38:43 +02:00
parent 80d0c19c5a
commit 6235fb2d03
2 changed files with 21 additions and 12 deletions
+5
View File
@@ -5,6 +5,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.
*