[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/algo26-matthias/idna-convert/src/TranscodeUnicode/ -> TranscodeUnicode.php (summary)

Converts between various flavours of Unicode representations like UCS-4 or UTF-8 Supported schemes: - UCS-4 Little Endian / Big Endian / Array (partially) - UTF-16 Little Endian / Big Endian (not yet) - UTF-8 - UTF-7 - UTF-7 IMAP (modified UTF-7)

Author: Matthias Sommerfeld <[email protected]>
Copyright: 2003-2019 algo26 Beratungs GmbH, Berlin, https://www.algo26.de
File Size: 437 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TranscodeUnicode:: (10 methods):
  convert()
  utf8_ucs4array()
  ucs4array_utf8()
  utf7imap_ucs4array()
  utf7_ucs4array()
  ucs4array_utf7imap()
  ucs4array_utf7()
  ucs4array_ucs4()
  ucs4_ucs4array()
  byteLength()


Class: TranscodeUnicode  - X-Ref

convert($data,string $fromEncoding,string $toEncoding,bool $safeMode = false,?int $safeCodepoint = null)   X-Ref
No description

utf8_ucs4array($input)   X-Ref
This converts an UTF-8 encoded string to its UCS-4 representation

param: string $input The UTF-8 string to convert
return: array  Array of 32bit values representing each codepoint

ucs4array_utf8($input)   X-Ref
Convert UCS-4 arary into UTF-8 string
See utf8_ucs4array() for details

param: $input array Array of UCS-4 codepoints
return: string

utf7imap_ucs4array($input)   X-Ref
No description

utf7_ucs4array($input, $sc = '+')   X-Ref
No description

ucs4array_utf7imap($input)   X-Ref
No description

ucs4array_utf7($input, $sc = '+')   X-Ref
No description

ucs4array_ucs4($input)   X-Ref
Convert UCS-4 array into UCS-4 string (Little Endian at the moment)

param: $input array UCS-4 code points
return: string

ucs4_ucs4array($input)   X-Ref
Convert UCS-4 string (LE ar the moment) into UCS-4 array

param: $input string UCS-4 LE string
return: array

byteLength($string)   X-Ref
Gets the length of a string in bytes even if mbstring function
overloading is turned on

param: string $string the string for which to get the length.
return: integer the length of the string in bytes.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer