ILIAS
eassessment Revision 61809
|
Go to the source code of this file.
Namespaces | |
namespace | UtfNormal |
Unicode normalization routines for working with UTF-8 strings. |
Functions | |
codepointToUtf8 ($codepoint) | |
Return UTF-8 sequence for a given Unicode code point. | |
hexSequenceToUtf8 ($sequence) | |
Take a series of space-separated hexadecimal numbers representing Unicode code points and return a UTF-8 string composed of those characters. | |
utf8ToHexSequence ($str) | |
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points. | |
utf8ToCodepoint ($char) | |
Determine the Unicode codepoint of a single-character UTF-8 sequence. | |
escapeSingleString ($string) | |
Escape a string for inclusion in a PHP single-quoted string literal. |
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 hexSequenceToUtf8().
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 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.
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.