From 4bebef94440be83d6321f2230c0931141d825eb5 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Fri, 29 Dec 2017 15:26:18 +0100 Subject: [PATCH] UTF-16: Fixed allowed range in documentation. --- ucw/unicode.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ucw/unicode.h b/ucw/unicode.h index d40e8105..2801fc68 100644 --- a/ucw/unicode.h +++ b/ucw/unicode.h @@ -182,7 +182,7 @@ static inline uint utf8_encoding_len(uint c) #define UTF8_MAX_LEN 6 /** - * Encode an UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,0x11FFFF]`; + * Encode an UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,0x10FFFF]`; * up to 4 bytes needed. **/ static inline void *utf16_le_put(void *p, uint u) @@ -203,7 +203,7 @@ static inline void *utf16_le_put(void *p, uint u) } /** - * Encode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,0x11FFFF]`; + * Encode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,0x10FFFF]`; * up to 4 bytes needed. **/ static inline void *utf16_be_put(void *p, uint u) @@ -224,7 +224,7 @@ static inline void *utf16_be_put(void *p, uint u) } /** - * Decode a UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,11FFFF]` + * Decode a UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,10FFFF]` * or return @repl if the encoding has been corrupted. **/ static inline void *utf16_le_get_repl(const void *p, uint *uu, uint repl) @@ -244,7 +244,7 @@ static inline void *utf16_le_get_repl(const void *p, uint *uu, uint repl) } /** - * Decode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,11FFFF]` + * Decode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,10FFFF]` * or return @repl if the encoding has been corrupted. **/ static inline void *utf16_be_get_repl(const void *p, uint *uu, uint repl) @@ -264,7 +264,7 @@ static inline void *utf16_be_get_repl(const void *p, uint *uu, uint repl) } /** - * Decode a UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,11FFFF]` + * Decode a UTF-16LE character from the range `[0, 0xD7FF]` or `[0xE000,10FFFF]` * or return `UNI_REPLACEMENT` if the encoding has been corrupted. **/ static inline void *utf16_le_get(const void *p, uint *uu) @@ -273,7 +273,7 @@ static inline void *utf16_le_get(const void *p, uint *uu) } /** - * Decode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,11FFFF]` + * Decode a UTF-16BE character from the range `[0, 0xD7FF]` or `[0xE000,10FFFF]` * or return `UNI_REPLACEMENT` if the encoding has been corrupted. **/ static inline void *utf16_be_get(const void *p, uint *uu) -- 2.39.2