uft8: add comment, requested by @keszybz
authorLennart Poettering <lennart@poettering.net>
Thu, 27 Sep 2018 15:13:53 +0000 (17:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Sep 2018 15:21:18 +0000 (17:21 +0200)
src/basic/utf8.h

index 69a816e..3de7980 100644 (file)
@@ -30,7 +30,7 @@ size_t utf16_encode_unichar(char16_t *out, char32_t c);
 char *utf16_to_utf8(const char16_t *s, size_t length /* bytes! */);
 char16_t *utf8_to_utf16(const char *s, size_t length);
 
-size_t char16_strlen(const char16_t *s);
+size_t char16_strlen(const char16_t *s); /* returns the number of 16bit words in the string (not bytes!) */
 
 int utf8_encoded_valid_unichar(const char *str);
 int utf8_encoded_to_unichar(const char *str, char32_t *ret_unichar);