#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)
}
/**
- * 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)
}
/**
- * 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)
}
/**
- * 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)
}
/**
- * 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)
}
/**
- * 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)