class SimpleDecomposer implements Decomposer

Class SimpleDecomposer

Properties

protected string $charSet Character set

Methods

__construct(string $charSet = 'UTF-8')

Constructor

string
execute(string $string)

Execute decomposing

int
strlen(string $str)

Get string length

string
charAt(string $str, int $num)

지정한 인덱스에 해당하는 문자를 반환한다.

int|null
ord(string $ch)

Return ASCII value of character

Details

at line 41
__construct(string $charSet = 'UTF-8')

Constructor

Parameters

string $charSet Character set

at line 52
string execute(string $string)

Execute decomposing

Parameters

string $string string whatever

Return Value

string

at line 84
protected int strlen(string $str)

Get string length

Parameters

string $str string

Return Value

int

at line 96
protected string charAt(string $str, int $num)

지정한 인덱스에 해당하는 문자를 반환한다.

Parameters

string $str string
int $num character index

Return Value

string

at line 107
protected int|null ord(string $ch)

Return ASCII value of character

Parameters

string $ch character

Return Value

int|null