final class CharsetLexemeGenerator
    implements LexemeGenerator

sql_yacc.yy literal actions require introduced bytes to be well formed in the selected character set.

Methods§

public function generate(LexemeInput $input): ?LexemeCandidates

Filters a finite declared charset domain against the already resolved right-hand literal.

Parameters

Test cases 1
Calls 6
public function bytes(string $literal): string

Decodes complete binary literal forms; text-literal quoting consists only of ASCII bytes.

Parameters

$literalstring

Returns

string
Test cases 10
Called from 1
Calls 11
public function accepts(string $charset, string $bytes): bool

latin1 and binary accept every byte; ASCII and the two UTF-8 widths retain their own contracts.

Parameters

$charsetstring
$bytesstring

Returns

bool
Test cases 12
Called from 1
Calls 3

Test cases 28§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 19
Other tests reaching this symbol 9

Relations§

Instantiated in 1