]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: unichar - Add length definitions for replacement and ellipsis characters.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 15 Sep 2020 22:37:45 +0000 (00:37 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 7 Oct 2020 14:08:11 +0000 (14:08 +0000)
src/lib/unichar.h

index 08df8e56f315fe4c7f3847c825fffbd47d07be0b..a7578cea8d73031b4a8900ee2e0a216ab5a2cfd8 100644 (file)
@@ -4,9 +4,13 @@
 /* Character used to replace invalid input. */
 #define UNICODE_REPLACEMENT_CHAR 0xfffd
 #define UNICODE_REPLACEMENT_CHAR_UTF8 "\xEF\xBF\xBD"
+#define UNICODE_REPLACEMENT_CHAR_UTF8_LEN \
+       (sizeof(UNICODE_REPLACEMENT_CHAR_UTF8) - 1);
 /* Horizontal ellipsis character ('...') */
 #define UNICODE_HORIZONTAL_ELLIPSIS_CHAR 0x2026
 #define UNICODE_HORIZONTAL_ELLIPSIS_CHAR_UTF8 "\xE2\x80\xA6"
+#define UNICODE_HORIZONTAL_ELLIPSIS_CHAR_UTF8_LEN \
+       (sizeof(UNICODE_HORIZONTAL_ELLIPSIS_CHAR_UTF8) - 1);
 
 /* Characters >= base require surrogates */
 #define UTF16_SURROGATE_BASE 0x10000