Measure byte length of UTF-8 encoding for a given character.
Moduletext-2.1.4Haskell2010
Data.Text.Internal.Encoding.Utf8
Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!
Basic UTF-8 validation and character manipulation.
- 3 types
- 17 values
- Packagetext-2.1.4
- Exports20
- LanguageHaskell2010
- LicenceBSD-2-Clause
- SourceUtf8.hs
Measure byte length of UTF-8 encoding for characters, starting with a given byte.
Encode a character as UTF-8 bytes assuming that exactly 2 are needed. This precondition is not checked.
Encode a character as UTF-8 bytes assuming that exactly 3 are needed. This precondition is not checked.
Encode a character as UTF-8 bytes assuming that exactly 4 are needed. This precondition is not checked.
Validation
4 declarationsNaive decoding
8 declarationsConstructors
Instances2Eq, Show
Eq DecoderStateDefined in text-2.1.4 · Data.Text.Internal.Encoding.Utf8Show DecoderStateDefined in text-2.1.4 · Data.Text.Internal.Encoding.Utf8