Substitution

Context-sensitive Unicode character substitution.

Table of contents

Namespace: Com\Tecnick\Unicode

Final: Yes

File: Substitution.php line 43

Context-sensitive Unicode character substitution.

Detects which scripts are present in the codepoint array in a single pass, then applies the matching per-script handlers in sequence: Thai, Devanagari, Hangul. Codepoints of unsupported scripts are passed through unmodified.

Tags

Methods

replaceChars()

File: Substitution.php line 53

public replaceChars(array<int, int> $ordarr) : array<int, int>

Empty input is returned unchanged.

Parameters

  • $ordarr : array<int, int>: Array of Unicode codepoints.

Return values

array<int, int> —

Transformed codepoint array.