Class Swift_CharacterReader_GenericFixedWidthReader
Provides fixed-width byte sizes for reading fixed-width character sets.
- Swift_CharacterReader_GenericFixedWidthReader implements Swift_CharacterReader
Package: Swift\Encoder
Author: Chris Corbyn
Author: Xavier De Cock <xdecock@gmail.com>
Located at vendors/swiftmailer/lib/classes/Swift/CharacterReader/GenericFixedWidthReader.php
Author: Chris Corbyn
Author: Xavier De Cock <xdecock@gmail.com>
Located at vendors/swiftmailer/lib/classes/Swift/CharacterReader/GenericFixedWidthReader.php
Methods summary
public
|
#
__construct( integer $width )
Creates a new GenericFixedWidthReader using $width bytes per character. |
public
mixed
|
#
getCharPositions( string $string, integer $startOffset, array & $currentMap, mixed & $ignoredChars )
Returns the complete charactermap |
public
integer
|
|
public
integer
|
#
validateByteSequence( string $bytes, mixed $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. |
public
integer
|
Magic methods summary
Constants summary
Constants inherited from Swift_CharacterReader
MAP_TYPE_FIXED_LEN
,
MAP_TYPE_INVALID
,
MAP_TYPE_POSITIONS
Properties summary
private
integer
|
$_width |
#
The number of bytes in a single character. |