XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
getCharPositions ($string, $startOffset, &$currentMap, &$ignoredChars) | |
getInitialByteSize () | |
getMapType () | |
validateByteSequence ($bytes, $size) | |
Static Private Attributes | |
static | $length_map |
static | $s_length_map |
Additional Inherited Members | |
Public Attributes inherited from Swift_CharacterReader | |
const | MAP_TYPE_FIXED_LEN = 0x02 |
const | MAP_TYPE_INVALID = 0x01 |
const | MAP_TYPE_POSITIONS = 0x03 |
Definition at line 20 of file Utf8Reader.php.
Swift_CharacterReader_Utf8Reader::getCharPositions | ( | $string, | |
$startOffset, | |||
& | $currentMap, | ||
& | $ignoredChars | ||
) |
Returns the complete charactermap
string | $string | |
int | $startOffset | |
array | $currentMap | |
mixed | $ignoredChars |
Implements Swift_CharacterReader.
Definition at line 87 of file Utf8Reader.php.
References $i.
Swift_CharacterReader_Utf8Reader::getInitialByteSize | ( | ) |
Returns the number of bytes which should be read to start each character.
Implements Swift_CharacterReader.
Definition at line 178 of file Utf8Reader.php.
Swift_CharacterReader_Utf8Reader::getMapType | ( | ) |
Returns mapType mapType
Implements Swift_CharacterReader.
Definition at line 148 of file Utf8Reader.php.
Swift_CharacterReader_Utf8Reader::validateByteSequence | ( | $bytes, | |
$size | |||
) |
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.
string | $bytes |
Implements Swift_CharacterReader.
Definition at line 162 of file Utf8Reader.php.
|
staticprivate |
Pre-computed for optimization
Definition at line 25 of file Utf8Reader.php.
|
staticprivate |
Definition at line 44 of file Utf8Reader.php.