Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_CharacterReader

Source Location: /vendors/swift/classes/Swift/CharacterReader.php

Interface Overview


Analyzes characters for a specific character set.


Author(s):

Constants

Methods



Class Details

[line 18]
Analyzes characters for a specific character set.



Tags:

author:  Xavier De Cock <xdecock@gmail.com>
author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


method getCharPositions [line 33]

int getCharPositions( string $string, int $startOffset, &$currentMap, &$ignoredChars, array $currentMap, mixed $ignoredChars)

Returns the complete charactermap



Tags:

access:  public


Parameters:

string   $string  
int   $startOffset  
array   $currentMap  
mixed   $ignoredChars  
   &$currentMap  
   &$ignoredChars  

[ Top ]

method getInitialByteSize [line 58]

int 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.




Tags:

access:  public


[ Top ]

method getMapType [line 39]

void getMapType( )

Returns mapType



Tags:

access:  public


[ Top ]

method validateByteSequence [line 50]

int validateByteSequence( int[] $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.




Tags:

access:  public


Parameters:

int[]   $bytes  
   $size  

[ Top ]


Class Constants

MAP_TYPE_FIXED_LEN =  0x02

[line 21]


[ Top ]

MAP_TYPE_INVALID =  0x01

[line 20]


[ Top ]

MAP_TYPE_POSITIONS =  0x03

[line 22]


[ Top ]



Documentation generated on Mon, 05 Sep 2011 20:32:11 -0500 by phpDocumentor 1.4.3