Class: I2CE UTF8: Difference between revisions

From IHRIS Wiki
No edit summary
(Redirected page to Class: I2CE UTF8 (4.0.3))
Line 1: Line 1:
This article describes the class ''I2CE_UTF8''.
#REDIRECT [[Class: I2CE_UTF8 (4.0.3)]]
*Location: Part of the module [[TextLayout Tools 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.2-release/annotate/head:/lib/I2CE_UTF8.php#L19 lib/I2CE_UTF8.php] on line 19
==Methods==
===cp_to_code()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_UTF8.php#L21 textlayout/lib/I2CE_UTF8.php] on line 21
*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
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_UTF8.php#L73 textlayout/lib/I2CE_UTF8.php] on line 73
*Signature: static public function encodeStringFromCodepoints($code_points,$as_array)
*Parameters:
**$code_points
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $as_array <br/>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)
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/lib/I2CE_UTF8.php#L97 textlayout/lib/I2CE_UTF8.php] on line 97
*Signature: static public function to_codepoints($str)
*Parameters:
**$str
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]<br/>of int  the unicode code points
 
 
[[Category:Class Documentation]]

Revision as of 15:19, 10 March 2010