XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_CharacterReader Interface Reference
Inheritance diagram for Swift_CharacterReader:
Inheritance graph

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
 

Detailed Description

Definition at line 18 of file CharacterReader.php.

Member Function Documentation

Swift_CharacterReader::getCharPositions (   $string,
  $startOffset,
$currentMap,
$ignoredChars 
)

Returns the complete charactermap

Parameters
string$string
int$startOffset
array$currentMap
mixed$ignoredChars
Returns
int

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.

Returns
int

Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.

Swift_CharacterReader::getMapType ( )
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.

Parameters
int[]$bytes
Returns
int

Implemented in Swift_CharacterReader_Utf8Reader, Swift_CharacterReader_GenericFixedWidthReader, and Swift_CharacterReader_UsAsciiReader.

Member Data Documentation

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().


The documentation for this interface was generated from the following file: