Analyzes UTF-8 characters.
package | Swift |
---|---|
subpackage | Encoder |
author | Chris Corbyn |
author | Xavier De Cock |
getCharPositions(string $string, int $startOffset, array $currentMap, mixed $ignoredChars) : int
string
int
array
mixed
int
getInitialByteSize() : int
For fixed width character sets this should be the number of octets-per-character. For multibyte character sets this will probably be 1.
int
getMapType() : int
int
mapTypevalidateByteSequence(string $bytes, $size) : int
A positive integer indicates the number of more bytes to fetch before invoking this method again. A value of zero means this is already a valid character. A value of -1 means this cannot possibly be a valid character.
string
int
$length_map
$s_length_map
MAP_TYPE_FIXED_LEN
inherited_from | \Swift_CharacterReader::MAP_TYPE_FIXED_LEN |
---|
MAP_TYPE_INVALID
inherited_from | \Swift_CharacterReader::MAP_TYPE_INVALID |
---|
MAP_TYPE_POSITIONS
inherited_from | \Swift_CharacterReader::MAP_TYPE_POSITIONS |
---|