Decided to use UNICODE code points rather than UTF-8 sequences for faster
UNICODE -> CP437 conversions (no string/memory compares needed), so cp437_utf8_tbl.* is being replaced by cp437_unicode_tbl.*. Added utf8 module which includes: - utf8_normalize_str() - normalize US-ASCIIZ string, from mailsrvr.c - utf8_putc() - encoder / length calculator - utf8_getc() - decoder The latter 2 were swiped from OpenSSL's a_utf8.c.
Showing
- src/encode/cp437_unicode_tbl.c 307 additions, 0 deletionssrc/encode/cp437_unicode_tbl.c
- src/encode/cp437_unicode_tbl.h 52 additions, 0 deletionssrc/encode/cp437_unicode_tbl.h
- src/encode/objects.mk 2 additions, 1 deletionsrc/encode/objects.mk
- src/encode/utf8.c 323 additions, 0 deletionssrc/encode/utf8.c
- src/encode/utf8.h 58 additions, 0 deletionssrc/encode/utf8.h
Loading
Please register or sign in to comment