From: Pavel Charvat Date: Fri, 29 Dec 2017 14:26:18 +0000 (+0100) Subject: UTF-16: Fixed allowed range in documentation. X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4bebef94440be83d6321f2230c0931141d825eb5;p=libucw.git UTF-16: Fixed allowed range in documentation. --- 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)