PHP 클래스 Swift_CharacterReader_GenericFixedWidthReader, Halite

저자: Chris Corbyn
저자: Xavier De Cock ([email protected])
상속: implements Swift_CharacterReader
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $width ) Creates a new GenericFixedWidthReader using $width bytes per character.
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 the mapType.
validateByteSequence ( string $bytes, integer $size ) : integer Returns an integer which specifies how many more bytes to read.

메소드 상세

__construct() 공개 메소드

Creates a new GenericFixedWidthReader using $width bytes per character.
public __construct ( integer $width )
$width integer

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 the mapType.
public getMapType ( ) : integer
리턴 integer

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