File: UtfNormalUtil.php
Source Location: /I18N_UnicodeNormalizer-1.0.0RC1/tests/benchmark/mediawiki/UtfNormalUtil.php
Classes:
Page Details:
Some of these functions are adapted from places in MediaWiki.
Should probably merge them for consistency.
codepointToUtf8 [line 38]
String codepointToUtf8(
$codepoint $codepoint)
|
|
Return UTF-8 sequence for a given Unicode code point. May die if fed out of range data.
Parameters
| $codepoint |
$codepoint |
Integer: |
escapeSingleString [line 134]
String: escapeSingleString(
$string $string)
|
|
Escape a string for inclusion in a PHP single-quoted string literal.
Parameters
| $string |
$string |
String: string to be escaped. |
hexSequenceToUtf8 [line 63]
String hexSequenceToUtf8(
$sequence $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.
Parameters
| $sequence |
$sequence |
String |
utf8ToCodepoint [line 94]
Integer utf8ToCodepoint(
$char $char)
|
|
Determine the Unicode codepoint of a single-character UTF-8 sequence. Does not check for invalid input data.
Parameters
utf8ToHexSequence [line 80]
string utf8ToHexSequence(
$str $str)
|
|
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points. For debugging.
Parameters
| $str |
$str |
String: UTF-8 string. |
Documentation generated on Tue, 24 Jul 2007 10:14:54 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|