Documentation

AlphaNum extends QRDataModeAbstract
in package

Alphanumeric mode: 0 to 9, A to Z, space, $ % * + - . / :

ISO/IEC 18004:2000 Section 8.3.3 ISO/IEC 18004:2000 Section 8.4.3

Table of Contents

CHAR_TO_ORD  = ['0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'A' => 10, 'B' => 11, 'C' => 12, 'D' => 13, 'E' => 14, 'F' => 15, 'G' => 16, 'H' => 17, 'I' => 18, 'J' => 19, 'K' => 20, 'L' => 21, 'M' => 22, 'N' => 23, 'O' => 24, 'P' => 25, 'Q' => 26, 'R' => 27, 'S' => 28, 'T' => 29, 'U' => 30, 'V' => 31, 'W' => 32, 'X' => 33, 'Y' => 34, 'Z' => 35, ' ' => 36, '$' => 37, '%' => 38, '*' => 39, '+' => 40, '-' => 41, '.' => 42, '/' => 43, ':' => 44]
ISO/IEC 18004:2000 Table 5
$data  : string
The data to write
$datamode  : int
the current data mode: Num, Alphanum, Kanji, Byte
__construct()  : mixed
QRDataModeAbstract constructor.
decodeSegment()  : string
getDataMode()  : int
returns the current data mode constant
getLengthInBits()  : int
validateString()  : bool
write()  : void
getCharCount()  : int
returns the character count of the $data string

Constants

CHAR_TO_ORD

ISO/IEC 18004:2000 Table 5

private array<string|int, int> CHAR_TO_ORD = ['0' => 0, '1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6, '7' => 7, '8' => 8, '9' => 9, 'A' => 10, 'B' => 11, 'C' => 12, 'D' => 13, 'E' => 14, 'F' => 15, 'G' => 16, 'H' => 17, 'I' => 18, 'J' => 19, 'K' => 20, 'L' => 21, 'M' => 22, 'N' => 23, 'O' => 24, 'P' => 25, 'Q' => 26, 'R' => 27, 'S' => 28, 'T' => 29, 'U' => 30, 'V' => 31, 'W' => 32, 'X' => 33, 'Y' => 34, 'Z' => 35, ' ' => 36, '$' => 37, '%' => 38, '*' => 39, '+' => 40, '-' => 41, '.' => 42, '/' => 43, ':' => 44]

Properties

$datamode

the current data mode: Num, Alphanum, Kanji, Byte

protected static int $datamode = chillerlanQRCodeCommonMode::ALPHANUM
Tags
inheritDoc

Methods

getDataMode()

returns the current data mode constant

public getDataMode() : int
Tags
inheritDoc
Return values
int

getLengthInBits()

public getLengthInBits() : int
Tags
inheritDoc
Return values
int

validateString()

public static validateString(string $string) : bool
Parameters
$string : string
Tags
inheritDoc
Return values
bool

write()

public write(BitBuffer $bitBuffer, int $versionNumber) : void
Parameters
$bitBuffer : BitBuffer
$versionNumber : int
Tags
inheritDoc
Return values
void

getCharCount()

returns the character count of the $data string

protected getCharCount() : int
Return values
int

Search results