Back to index

php5  5.3.10
Static Public Member Functions | Public Attributes
Normalizer Class Reference

Normalizer class. More...

List of all members.

Static Public Member Functions

static normalize ($input, $form=Normalizer::FORM_C)
 Normalizes the input provided and returns the normalized string.
static isNormalized ($input, $form=Normalizer::FORM_C)
 Checks if the provided string is already in the specified normalization form.

Public Attributes

const NONE = 1
 Valid normalization form values.
const NFD = 2
 Canonical decomposition.
const FORM_D = NFD
const NFKD = 3
 Compatibility decomposition.
const FORM_KD = NFKD
const NFC = 4
 Canonical decomposition followed by canonical composition.
const FORM_C = NFC
const NFKC = 5
 Compatibility decomposition followed by canonical composition.
const FORM_KC = NFKC

Detailed Description

Normalizer class.

Normalizer provides access to Unicode normalization of strings. This class consists only of static methods. The iterator interface to normalizer is rarely used, so is not provided here.

Example:

See also:
http://www.icu-project.org/apiref/icu4c/unorm_8h.html
http://www.icu-project.org/apiref/icu4c/classNormalizer.html

Definition at line 23 of file normalizer_api.php.


Member Function Documentation

static Normalizer::isNormalized ( input,
form = Normalizer::FORM_C 
) [static]

Checks if the provided string is already in the specified normalization form.

Parameters:
string$inputThe input string to normalize
[int]$form One of the normalization forms
Returns:
boolean True if normalized, false otherwise or if there is an error

Definition at line 65 of file normalizer_api.php.

{}

Here is the caller graph for this function:

static Normalizer::normalize ( input,
form = Normalizer::FORM_C 
) [static]

Normalizes the input provided and returns the normalized string.

Parameters:
string$inputThe input string to normalize
[int]$form One of the normalization forms
Returns:
string The normalized string or null if an error occurred.

Definition at line 57 of file normalizer_api.php.

{}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 45 of file normalizer_api.php.

Definition at line 39 of file normalizer_api.php.

Definition at line 48 of file normalizer_api.php.

Definition at line 42 of file normalizer_api.php.

const Normalizer::NFC = 4

Canonical decomposition followed by canonical composition.

Definition at line 44 of file normalizer_api.php.

const Normalizer::NFD = 2

Canonical decomposition.

Definition at line 38 of file normalizer_api.php.

const Normalizer::NFKC = 5

Compatibility decomposition followed by canonical composition.

Definition at line 47 of file normalizer_api.php.

const Normalizer::NFKD = 3

Compatibility decomposition.

Definition at line 41 of file normalizer_api.php.

const Normalizer::NONE = 1

Valid normalization form values.

See also:
Normalizer::normalize()
Normalizer::isNormalize()
normalizer_normalize()
normalizer_is_normalized()

Definition at line 36 of file normalizer_api.php.


The documentation for this class was generated from the following file: