final class RecordParser
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.

Record Parser.

Methods§

public function splitRecords(string $contents, InputFormat $format): list<string>

Parameters

$contentsstring
$formatInputFormat

Returns

list<string>
Test cases 1
Called from 1
Calls 4
public function parseFields(string $record, InputFormat $format): list<string|null>

Parameters

$recordstring
$formatInputFormat

Returns

list<string|null>
Test cases 1
Called from 1
Calls 4
public function fieldValue(
    string $raw,
    string $decoded,
    bool $quoted,
    string $enclosure,
    string $escape,
): ?string
public function enclosureWidth(?string $followingByte, bool $enclosed, string $enclosure): int

A doubled enclosure inside an enclosed field is one literal enclosure token.

Parameters

$followingByte?string
$enclosedbool
$enclosurestring

Returns

int
Test cases 1
Called from 1

Test cases 14§

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

Dedicated tests 11
Other tests reaching this symbol 3

Relations§

Instantiated in 2
Method calls 2