ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Go to the source code of this file.
Functions | |
codepointToUtf8 ( $codepoint) | |
Return UTF-8 sequence for a given Unicode code point. More... | |
hexSequenceToUtf8 ( $sequence) | |
Take a series of space-separated hexadecimal numbers representing Unicode code points and return a UTF-8 string composed of those characters. More... | |
utf8ToHexSequence ( $str) | |
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points. More... | |
utf8ToCodepoint ( $char) | |
Determine the Unicode codepoint of a single-character UTF-8 sequence. More... | |
escapeSingleString ( $string) | |
Escape a string for inclusion in a PHP single-quoted string literal. More... | |
codepointToUtf8 | ( | $codepoint | ) |
Return UTF-8 sequence for a given Unicode code point.
May die if fed out of range data.
$codepoint | Integer: |
Definition at line 38 of file UtfNormalUtil.php.
Referenced by ilCharSelectorConfig\getItemParsedCallback(), Sanitizer\hexCharReference(), hexSequenceToUtf8(), and CleanUpTest\XtestAllChars().
escapeSingleString | ( | $string | ) |
Escape a string for inclusion in a PHP single-quoted string literal.
$string | String: string to be escaped. |
Definition at line 138 of file UtfNormalUtil.php.
References array.
|
private |
Take a series of space-separated hexadecimal numbers representing Unicode code points and return a UTF-8 string composed of those characters.
Used by UTF-8 data generation and testing routines.
$sequence | String |
Definition at line 63 of file UtfNormalUtil.php.
References $n, and codepointToUtf8().
utf8ToCodepoint | ( | $char | ) |
Determine the Unicode codepoint of a single-character UTF-8 sequence.
Does not check for invalid input data.
$char | String |
Definition at line 98 of file UtfNormalUtil.php.
Referenced by ilCharSelectorConfig\getItemCodepoint(), and utf8ToHexSequence().
|
private |
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points.
For debugging.
$str | String: UTF-8 string. |
Definition at line 80 of file UtfNormalUtil.php.
References utf8ToCodepoint().