XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
getCharPositions ($string, $startOffset, &$currentMap, &$ignoredChars) | |
getInitialByteSize () | |
getMapType () | |
validateByteSequence ($bytes, $size) | |
Public Attributes | |
const | MAP_TYPE_FIXED_LEN = 0x02 |
const | MAP_TYPE_INVALID = 0x01 |
const | MAP_TYPE_POSITIONS = 0x03 |
Definition at line 18 of file CharacterReader.php.
Swift_CharacterReader::getCharPositions | ( | $string, | |
$startOffset, | |||
& | $currentMap, | ||
& | $ignoredChars | ||
) |
Returns the complete charactermap
string | $string | |
int | $startOffset | |
array | $currentMap | |
mixed | $ignoredChars |
Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.
Swift_CharacterReader::getInitialByteSize | ( | ) |
Returns the number of bytes which should be read to start each character. For fixed width character sets this should be the number of octets-per-character. For multibyte character sets this will probably be 1.
Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.
Swift_CharacterReader::getMapType | ( | ) |
Returns mapType mapType
Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.
Swift_CharacterReader::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.
int[] | $bytes |
Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.
const Swift_CharacterReader::MAP_TYPE_FIXED_LEN = 0x02 |
Definition at line 21 of file CharacterReader.php.
Referenced by read().
const Swift_CharacterReader::MAP_TYPE_INVALID = 0x01 |
Definition at line 20 of file CharacterReader.php.
Referenced by read().
const Swift_CharacterReader::MAP_TYPE_POSITIONS = 0x03 |
Definition at line 22 of file CharacterReader.php.
Referenced by read().