[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Some of these functions are adapted from places in MediaWiki. Should probably merge them for consistency. Copyright © 2004 Brion Vibber <[email protected]> https://www.mediawiki.org/
File Size: | 154 lines (4 kb) |
Included or required: | 5 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
codepointToUtf8( $codepoint ) X-Ref |
Return UTF-8 sequence for a given Unicode code point. May die if fed out of range data. param: $codepoint Integer: return: String |
hexSequenceToUtf8( $sequence ) X-Ref |
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. param: $sequence String return: String |
utf8ToHexSequence( $str ) X-Ref |
Take a UTF-8 string and return a space-separated series of hex numbers representing Unicode code points. For debugging. param: string $str UTF-8 string. return: string |
utf8ToCodepoint( $char ) X-Ref |
Determine the Unicode codepoint of a single-character UTF-8 sequence. Does not check for invalid input data. param: $char String return: Integer |
escapeSingleString( $string ) X-Ref |
Escape a string for inclusion in a PHP single-quoted string literal. param: string $string string to be escaped. return: String: escaped string. |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |