Class Swift_CharacterReader_UsAsciiReader

InheritanceSwift_CharacterReader_UsAsciiReader
ImplementsSwift_CharacterReader

Analyzes US-ASCII characters.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getCharPositions() Returns the complete character map. Swift_CharacterReader_UsAsciiReader
getInitialByteSize() Returns the number of bytes which should be read to start each character. Swift_CharacterReader_UsAsciiReader
getMapType() Returns mapType. Swift_CharacterReader_UsAsciiReader
validateByteSequence() Returns an integer which specifies how many more bytes to read. Swift_CharacterReader_UsAsciiReader

Method Details

getCharPositions() public method

Returns the complete character map.

public int getCharPositions ( $string, $startOffset, &$currentMap, &$ignoredChars )
$string string
$startOffset int
$currentMap array
$ignoredChars string
getInitialByteSize() public method

Returns the number of bytes which should be read to start each character.

public int getInitialByteSize ( )
getMapType() public method

Returns mapType.

public int getMapType ( )
return int

MapType

validateByteSequence() public method

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