Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Keyword Suggestion Scripts | Email : sachin {at} jainsachin {dot} com

PHP | The Normalizer class | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



SEO Tools




    The Normalizer class

    The Normalizer class

    Introduction

    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
    The different forms are defined in terms of a set of transformations on the text, transformations that are expressed by both an algorithm and a set of data files.

    Class synopsis

    Normalizer
    class Normalizer {
    /* Methods */
    static boolean isNormalized ( string $input [, string $form ] )
    static string normalize ( string $input [, string $form ] )
    }

    Predefined Constants

    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

    Table of Contents


    SEO Tutorial / Articles



    Php / Mysql Tutorial



    Articles



      Other Topics



      SEO by Jainsachin