apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

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.

  • Public:


Parameters

$codepoint   $codepoint   Integer:
[ Top ]



escapeSingleString [line 134]

String: escapeSingleString( $string $string)

Escape a string for inclusion in a PHP single-quoted string literal.
  • Return: escaped string.
  • Public:


Parameters

$string   $string   String: string to be escaped.
[ Top ]



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.
  • Private:


Parameters

$sequence   $sequence   String
[ Top ]



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.

  • Public:


Parameters

$char   $char   String
[ Top ]



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.
  • Private:


Parameters

$str   $str   String: UTF-8 string.
[ Top ]



Documentation generated on Tue, 24 Jul 2007 10:14:54 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.