convertlib release
convertlib 3.8.0
- New codecs, each with
to<Name>,from<Name>, andtryFrom<Name>:- Quoted-printable (RFC 2045):
QuotedPrintableCodecwithstandard,binary(escapes CRLF), andheader(RFC 2047 "Q"). AlsotoQuotedPrintableBytes. #17 - UTF-16 and UTF-32:
UTF16CodecandUTF32CodecwithbigEndian,littleEndian, andstandard(writes and reads a byte order mark). Theconstconstructor also takesallowMalformed(malformed input becomesU+FFFD). - IMAP modified UTF-7 (RFC 3501):
ImapUtf7Codecwithstandardandlenient. - Multibase: the
Multibaseenum covers the multibase table exceptproquintandbase256emoji;Multibase.ofdetects the prefix.
- Quoted-printable (RFC 2045):
- Add the line-wrapped
Base64Codec.mime(RFC 2045, 76 + CRLF),Base64Codec.pem(RFC 7468, 64 + LF), andBase64Codec.wrapped. Their decoders skip every character outside the alphabet,-and_included. - Support chunked conversion (
bind) on all encoders and decoders except Base-36, Base-58, Base-62, and Base-85ipv6. - Speed up
fromBigInt(6-11x on the VM, up to 2x on the web) andfromUtf8of short ASCII text (17% at 32 bytes). - Streaming Base-8 holds its input as bytes, using about 7x less memory (936 MB -> 128 MB peak for a 32 MB stream), and runs 6x faster.
UTF16Encoder.encodewrites into an exact-size buffer instead of a 2x one trimmed by a copy.ByteCollector: addmultibase([base]),utf16()andutf32(), and acodec:parameter onbase32()andbase64()for the other alphabets (Crockford, z-base-32, geohash, bcrypt, MIME, ...).