\Swift_CharacterReader_Utf8Reader
Analyzes UTF-8 characters.
- Author: Chris Corbyn
Synopsis
class Swift_CharacterReader_Utf8Reader
implements
Swift_CharacterReader
{
- // members
- private array $length_map;
- private array $s_length_map;
- // methods
- public integer getCharPositions()
- public integer getMapType()
- public integer validateByteSequence()
- public integer getInitialByteSize()
Hierarchy
Implements
Constants
Name | Value |
---|---|
MAP_TYPE_INVALID | 0x01 |
MAP_TYPE_FIXED_LEN | 0x02 |
MAP_TYPE_POSITIONS | 0x03 |
Members
private
-
$length_map
Pre-computed for optimization - $s_length_map
Methods
public
- getCharPositions() — Returns the complete character map.
- getInitialByteSize() — Returns the number of bytes which should be read to start each character.
- getMapType() — Returns mapType.
- validateByteSequence() — Returns an integer which specifies how many more bytes to read.