PHP Класс Swift_CharacterReader_Utf8Reader, Halite

Автор: Chris Corbyn
Автор: Xavier De Cock ([email protected])
Наследование: implements Swift_CharacterReader
Показать файл Открыть проект

Открытые методы

Метод Описание
getCharPositions ( string $string, integer $startOffset, array &$currentMap, mixed &$ignoredChars ) : integer Returns the complete character map.
getInitialByteSize ( ) : integer Returns the number of bytes which should be read to start each character.
getMapType ( ) : integer Returns mapType.
validateByteSequence ( string $bytes, integer $size ) : integer Returns an integer which specifies how many more bytes to read.

Описание методов

getCharPositions() публичный Метод

Returns the complete character map.
public getCharPositions ( string $string, integer $startOffset, array &$currentMap, mixed &$ignoredChars ) : integer
$string string
$startOffset integer
$currentMap array
$ignoredChars mixed
Результат integer

getInitialByteSize() публичный Метод

Returns the number of bytes which should be read to start each character.
public getInitialByteSize ( ) : integer
Результат integer

getMapType() публичный Метод

Returns mapType.
public getMapType ( ) : integer
Результат integer mapType

validateByteSequence() публичный Метод

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 validateByteSequence ( string $bytes, integer $size ) : integer
$bytes string
$size integer
Результат integer