utf_ext library
A package for reading and writing text files in any major Unicode format (UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE)
Classes
- UtfCodec
- Container class for decoder and encoder
- UtfConfig
- Simple configuration
- UtfConst
- UTF-related constants
- UtfDecoder
- Class to perform the actual decoding from UTF file/stream
- UtfDecoderSink
- Supplementary class for chunked conversion implementation
- UtfEncoder
- Class to perform the actual encoding to UTF file/stream
- UtfEncoderSink
- Supplementary class for chunked conversion implementation
- UtfHelper
- Common helpers
Enums
- UtfType
- UTF types
Extensions
-
UtfByteStream
on Stream<
List< int> > - Helper class to manage text files written in any of the Unicode encodings: UTF-8, UTF-16, UTF-32
- UtfFile on File
- Helper class to manage text files written in any of the Unicode encodings: UTF-8, UTF-16, UTF-32
- UtfSink on IOSink
- Helper class to manage text files written in any of the Unicode encodings: UTF-8, UTF-16, UTF-32
- UtfStdin on Stdin
- Class for the formatted output
- UtfStdout on Stdout
- Class for the formatted output
-
UtfStringStream
on Stream<
String> - Helper class to manage callbacks for text files
Typedefs
-
ByteReaderSync
= int Function(List<
int> bytes, [int start, int? end]) - Called to read the next portion of bytes from/to file or stdin/stdout (blocking)
-
ByteWriterSync
= void Function(List<
int> bytes, [int start, int? end]) - Called to write the next portion of bytes from/to file or stdin/stdout (blocking)
- UtfBomHandler = void Function(UtfType type, bool isWrite)
- Called while reading or writing UTF BOM (always synchronous)
-
UtfIoHandler
= VisitHandler<
String> - Called while reading UTF (non-blocking or blocking)
-
UtfIoHandlerSync
= VisitHandlerSync<
String> - Called while reading UTF (blocking)
-
UtfIoParams
= VisitParams<
String> - Type for read parameters
Exceptions / Errors
- UtfException
- Base UTF exception (optional)