Normalizer
class Normalizer (View source)
Constants
| NFKC_CF |
|
| FORM_KC_CF |
|
| OPTION_DEFAULT |
Default normalization options |
| NONE |
No decomposition/composition |
| FORM_D |
Normalization Form D (NFD) - Canonical Decomposition |
| NFD |
|
| FORM_KD |
Normalization Form KD (NFKD) - Compatibility Decomposition |
| NFKD |
|
| FORM_C |
Normalization Form C (NFC) - Canonical Decomposition followed by
Canonical Composition |
| NFC |
|
| FORM_KC |
Normalization Form KC (NFKC) - Compatibility Decomposition, followed by
Canonical Composition |
| NFKC |
|
Methods
(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
Normalizes the input provided and returns the normalized string
(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
Checks if the provided string is already in the specified normalization form.
No description
Details
static string|false
normalize(string $string, int $form = Normalizer::FORM_C, $arg3)
(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
Normalizes the input provided and returns the normalized string
static bool
isNormalized(string $string, int $form = Normalizer::FORM_C, $arg3)
(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
Checks if the provided string is already in the specified normalization form.
static string|null
getRawDecomposition(string $string, int $form = 16)
No description