text-1.2.1.3: An efficient packed Unicode text type.

Copyright | (c) 2008, 2009 Tom Harper, (c) 2009, 2010 Bryan O'Sullivan, (c) 2009 Duncan Coutts
License | BSD-style
Maintainer | bos@serpentine.com
Stability | experimental
Portability | GHC
Safe Haskell | None
Language | Haskell98

Data.Text.Internal.Encoding.Utf8

Contents

- Validation

Description

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.

Synopsis

- ord2 :: Char -> (Word8, Word8)
- ord3 :: Char -> (Word8, Word8, Word8)
- ord4 :: Char -> (Word8, Word8, Word8, Word8)
- chr2 :: Word8 -> Word8 -> Char
- chr3 :: Word8 -> Word8 -> Word8 -> Char
- chr4 :: Word8 -> Word8 -> Word8 -> Word8 -> Char
- validate1 :: Word8 -> Bool
- validate2 :: Word8 -> Word8 -> Bool
- validate3 :: Word8 -> Word8 -> Word8 -> Bool
- validate4 :: Word8 -> Word8 -> Word8 -> Word8 -> Bool

# Documentation

ord2 :: Char -> (Word8, Word8)

ord3 :: Char -> (Word8, Word8, Word8)

ord4 :: Char -> (Word8, Word8, Word8, Word8)

chr2 :: Word8 -> Word8 -> Char

chr3 :: Word8 -> Word8 -> Word8 -> Char

chr4 :: Word8 -> Word8 -> Word8 -> Word8 -> Char

# Validation

validate1 :: Word8 -> Bool

validate2 :: Word8 -> Word8 -> Bool

validate3 :: Word8 -> Word8 -> Word8 -> Bool

validate4 :: Word8 -> Word8 -> Word8 -> Word8 -> Bool