]> mj.ucw.cz Git - libucw.git/commitdiff
UTF-16: Fixed allowed range in documentation. dev-utf8
authorPavel Charvat <pchar@ucw.cz>
Fri, 29 Dec 2017 14:26:18 +0000 (15:26 +0100)
committerPavel Charvat <pchar@ucw.cz>
Fri, 29 Dec 2017 14:26:18 +0000 (15:26 +0100)
ucw/unicode.h

index d40e8105f21b2bed4eb70b069d2c21eba2e36242..2801fc681f9e2dc42097838d889f4f2141d16b59 100644 (file)
@@ -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)