ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 150 of file UtfNormalUtil.php.
|
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 72 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 109 of file UtfNormalUtil.php.
References $i.
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 90 of file UtfNormalUtil.php.
References utf8ToCodepoint().