final class TextFields
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Text fields operations for PostgreSQL copy.

Methods§

public function escape(string $value, string $separator): string
public function decodeFields(string $row, string $separator, string $nullAs): list<string|null>

Parameters

$rowstring
$separatorstring
$nullAsstring

Returns

list<string|null>

Throws

ValueError
Test cases 1
Called from 1
Calls 3
public function decodeEscape(string $row, int &$index): string

Decodes an escape and advances the caller to its final source byte.

Parameters

$rowstring
$indexint

Returns

string

Throws

ValueError
Test cases 1
Called from 1
Calls 4
public function octalByte(string $row, int &$index, string $next): string

Reads at most three octal digits and rejects values outside one byte.

Parameters

$rowstring
$indexint
$nextstring

Returns

string

Throws

ValueError
Test cases 1
Called from 1
Calls 4
public function hexByte(string $row, int &$index, string $following): string

Reads at most two hexadecimal digits after an escape prefix.

Parameters

$rowstring
$indexint
$followingstring

Returns

string

Throws

ValueError
Test cases 1
Called from 1
Calls 4

Test cases 8§

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

Dedicated tests 6
Other tests reaching this symbol 2

Relations§

Instantiated in 4
Method calls 4