The Normalizer class
Введение
Normalization is a process that involves transforming characters and sequences of characters into a formally-defined underlying representation. This process is most important when text needs to be compared for sorting and searching, but it is also used when storing text to ensure that the text is stored in a consistent representation.
The Unicode Consortium has defined a number of normalization forms reflecting the various needs of applications:
- Normalization Form D (NFD) - Canonical Decomposition
- Normalization Form C (NFC) - Canonical Decomposition followed by Canonical Composition
- Normalization Form KD (NFKD) - Compatibility Decomposition
- Normalization Form KC (NFKC) - Compatibility Decomposition followed by Canonical Composition
Class synopsis
Normalizer
class Normalizer
{
/* Methods */
}Предопределенные константы
The following constants define the normalization form used by the normalizer:
- Normalizer::FORM_C (string)
- Normalization Form C (NFC) - Canonical Decomposition followed by Canonical Composition
- Normalizer::FORM_D (string)
- Normalization Form D (NFD) - Canonical Decomposition
- Normalizer::FORM_KC (string)
- Normalization Form KC (NFKC) - Compatibility Decomposition, followed by Canonical Composition
- Normalizer::FORM_KD (string)
- Normalization Form KD (NFKD) - Compatibility Decomposition
- Normalizer::NONE (string)
- No decomposition/composition
- Normalizer::OPTION_DEFAULT (string)
- Default normalization options
Содержание
- Normalizer::isNormalized — Checks if the provided string is already in the specified normalization form.
- Normalizer::normalize — Normalizes the input provided and returns the normalized string
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Поддержка языков и кодировок
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- The Collator class
- The NumberFormatter class
- The Locale class
- The Normalizer class
- The MessageFormatter class
- The IntlCalendar class
- The IntlTimeZone class
- The IntlDateFormatter class
- The ResourceBundle class
- The Spoofchecker class
- The Transliterator class
- The IntlBreakIterator class
- The IntlRuleBasedBreakIterator class
- The IntlCodePointBreakIterator class
- The IntlPartsIterator class
- The UConverter class
- Grapheme Функции
- IDN Функции
- IntlChar
- Exception class for intl errors
- The IntlIterator class
- intl Функции
Коментарии
404 Not Found