Class: I2CE UTF8: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This article desrcibes the class | This article desrcibes the class ''I2CE_UTF8''. | ||
*Location: Part of the module [[iHRIS Module List#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] | *Location: Part of the module [[iHRIS Module List#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.0-release/annotate/head:/lib/I2CE_UTF8.php lib/I2CE_UTF8.php] | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.0-release/annotate/head:/lib/I2CE_UTF8.php lib/I2CE_UTF8.php] | ||
==Methods== | ==Methods== | ||
===cp_to_code()=== | ===cp_to_code()=== |
Revision as of 22:15, 16 October 2009
This article desrcibes the class I2CE_UTF8.
- Location: Part of the module textlayout in the package TextLayout Tools
- Source: Defined in the file lib/I2CE_UTF8.php
Methods
cp_to_code()
- Signature: static public function cp_to_code($code_point)
Parameters:
- $code_point
encodeStringFromCodepoints()
Given unicode codepoints, create the corresponding string @param array code_points an array of code points
- Signature: static public function encodeStringFromCodepoints($code_points,$as_array)
Parameters:
- $code_points
- boolean $as_array
true if we want output as an array, false if we output as a string- Default Value: false
to_codepoints()
Given a string encoded in utf8, it returns an array of the unicode codepoints (adapted from tcpdf.php)
- Signature: static public function to_codepoints($str)
- Returns: array of int the unicode code points
Parameters:
- $str