ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Go to the source code of this file.
Namespaces | |
UtfNormal | |
Unicode normalization routines for working with UTF-8 strings. | |
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.
int | $codepoint |
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 |
Definition at line 133 of file UtfNormalUtil.php.
hexSequenceToUtf8 | ( | $sequence | ) |
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.
string | $sequence |
Definition at line 62 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.
string | $char |
Definition at line 93 of file UtfNormalUtil.php.
Referenced by ilCharSelectorConfig\getItemCodepoint().
utf8ToHexSequence | ( | $str | ) |
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points.
For debugging.
string | $str |
Definition at line 79 of file UtfNormalUtil.php.