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
- since: 2026-04-30
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-unicode
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.