[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/htmlpurifier/library/HTMLPurifier/ -> Encoder.php (summary)

(no description)

File Size: 426 lines (19 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTMLPurifier_Encoder:: (8 methods):
  __construct()
  muteErrorHandler()
  cleanUTF8()
  unichr()
  convertToUTF8()
  convertFromUTF8()
  convertToASCIIDumbLossless()
  testEncodingSupportsASCII()


Class: HTMLPurifier_Encoder  - X-Ref

A UTF-8 specific character encoder that handles cleaning and transforming.

__construct()   X-Ref
Constructor throws fatal error if you attempt to instantiate class


muteErrorHandler()   X-Ref
Error-handler that mutes errors, alternative to shut-up operator.


cleanUTF8($str, $force_php = false)   X-Ref
Cleans a UTF-8 string for well-formedness and SGML validity

It will parse according to UTF-8 and return a valid UTF8 string, with
non-SGML codepoints excluded.


unichr($code)   X-Ref
No description

convertToUTF8($str, $config, $context)   X-Ref
Converts a string to UTF-8 based on configuration.


convertFromUTF8($str, $config, $context)   X-Ref
Converts a string from UTF-8 based on configuration.


convertToASCIIDumbLossless($str)   X-Ref
Lossless (character-wise) conversion of HTML to ASCII

returns: ASCII encoded string with non-ASCII character entity-ized
param: $str UTF-8 string to be converted to ASCII

testEncodingSupportsASCII($encoding, $bypass = false)   X-Ref
This expensive function tests whether or not a given character
encoding supports ASCII. 7/8-bit encodings like Shift_JIS will
fail this test, and require special processing. Variable width
encodings shouldn't ever fail.

param: string $encoding Encoding name to test, as per iconv format
param: bool $bypass Whether or not to bypass the precompiled arrays.
return: Array of UTF-8 characters to their corresponding ASCII,



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1