Class: I2CE UTF8 (4.0.4)

From IHRIS Wiki
Revision as of 07:44, 27 May 2010 by Litlfred (talk | contribs) (Created page with '{{otherversions|Class: I2CE_UTF8}} This article describes the class ''I2CE_UTF8'' . *Location: Part of the module textlayout i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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)