Class: I2CE UTF8 (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_UTF8}} This article describes the class ''I2CE_UTF8'' . *Location: Part of the module [[TextLayout Tools Module List (Development)#textlayout|textlayo…')
 
No edit summary
 
Line 1: Line 1:
{{otherversions|Class: I2CE_UTF8}}
{{otherversions|Class: I2CE_UTF8}}
This article describes the class ''I2CE_UTF8'' .
This article describes the class ''I2CE_UTF8'' .
*Location: Part of the module [[TextLayout Tools Module List (Development)#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] 4.0-dev
*Location: Part of the module [[TextLayout Tools Module List (Development)#textlayout|textlayout]] in the package [https://launchpad.net/textlayout TextLayout Tools] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0-dev/annotate/head:/lib/I2CE_UTF8.php#L19 lib/I2CE_UTF8.php] on line 19
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.1-dev/annotate/head:/lib/I2CE_UTF8.php#L19 lib/I2CE_UTF8.php] on line 19
==Methods==
==Methods==
===cp_to_code()===
===cp_to_code()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0-dev/annotate/head:/lib/I2CE_UTF8.php#L21 textlayout/lib/I2CE_UTF8.php] on line 21
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.1-dev/annotate/head:/lib/I2CE_UTF8.php#L21 textlayout/lib/I2CE_UTF8.php] on line 21
*Signature: static public function cp_to_code($code_point)
*Signature: static public function cp_to_code($code_point)
*Parameters:
*Parameters:
Line 11: Line 11:
===encodeStringFromCodepoints()===
===encodeStringFromCodepoints()===
Given unicode codepoints, create the corresponding string @param array code_points an array of code points
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-dev/annotate/head:/lib/I2CE_UTF8.php#L73 textlayout/lib/I2CE_UTF8.php] on line 73
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.1-dev/annotate/head:/lib/I2CE_UTF8.php#L73 textlayout/lib/I2CE_UTF8.php] on line 73
*Signature: static public function encodeStringFromCodepoints($code_points,$as_array)
*Signature: static public function encodeStringFromCodepoints($code_points,$as_array)
*Parameters:
*Parameters:
Line 19: Line 19:
===to_codepoints()===
===to_codepoints()===
Given a string encoded in utf8, it returns an array of the unicode codepoints (adapted from tcpdf.php)
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-dev/annotate/head:/lib/I2CE_UTF8.php#L97 textlayout/lib/I2CE_UTF8.php] on line 97
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.1-dev/annotate/head:/lib/I2CE_UTF8.php#L97 textlayout/lib/I2CE_UTF8.php] on line 97
*Signature: static public function to_codepoints($str)
*Signature: static public function to_codepoints($str)
*Parameters:
*Parameters:

Latest revision as of 09:20, 6 May 2015


This article describes the class I2CE_UTF8 .

Methods

cp_to_code()

encodeStringFromCodepoints()

Given unicode codepoints, create the corresponding string @param array code_points an array of code points

  • Defined in textlayout/lib/I2CE_UTF8.php on line 73
  • 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)