Class Swift_CharacterReader_Utf8Reader
Inheritance | Swift_CharacterReader_Utf8Reader |
---|---|
Implements | Swift_CharacterReader |
Analyzes UTF-8 characters.
Public Methods
Method | Description | Defined By |
---|---|---|
getCharPositions() | Returns the complete character map. | Swift_CharacterReader_Utf8Reader |
getInitialByteSize() | Returns the number of bytes which should be read to start each character. | Swift_CharacterReader_Utf8Reader |
getMapType() | Returns mapType. | Swift_CharacterReader_Utf8Reader |
validateByteSequence() | Returns an integer which specifies how many more bytes to read. | Swift_CharacterReader_Utf8Reader |
Method Details
Returns the complete character map.
public int getCharPositions ( $string, $startOffset, <b>&</b>$currentMap, <b>&</b>$ignoredChars ) | ||
$string | string | |
$startOffset | int | |
$currentMap | array | |
$ignoredChars | mixed |
Returns the number of bytes which should be read to start each character.
public int getInitialByteSize ( ) |
Returns mapType.
public int getMapType ( ) | ||
return | int | MapType |
---|
Returns an integer which specifies how many more bytes to read.
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.
public int validateByteSequence ( $bytes, $size ) | ||
$bytes | string | |
$size | int |