Back to index

php5  5.3.10
Defines | Functions
normalizer.h File Reference
#include <php.h>
#include <unicode/utypes.h>
#include <unicode/unorm.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NORMALIZER_NONE   UNORM_NONE
#define NORMALIZER_FORM_D   UNORM_NFD
#define NORMALIZER_NFD   UNORM_NFD
#define NORMALIZER_FORM_KD   UNORM_NFKD
#define NORMALIZER_NFKD   UNORM_NFKD
#define NORMALIZER_FORM_C   UNORM_NFC
#define NORMALIZER_NFC   UNORM_NFC
#define NORMALIZER_FORM_KC   UNORM_NFKC
#define NORMALIZER_NFKC   UNORM_NFKC
#define NORMALIZER_DEFAULT   UNORM_DEFAULT

Functions

void normalizer_register_constants (INIT_FUNC_ARGS)

Define Documentation

#define NORMALIZER_DEFAULT   UNORM_DEFAULT

Definition at line 33 of file normalizer.h.

#define NORMALIZER_FORM_C   UNORM_NFC

Definition at line 29 of file normalizer.h.

#define NORMALIZER_FORM_D   UNORM_NFD

Definition at line 25 of file normalizer.h.

#define NORMALIZER_FORM_KC   UNORM_NFKC

Definition at line 31 of file normalizer.h.

#define NORMALIZER_FORM_KD   UNORM_NFKD

Definition at line 27 of file normalizer.h.

#define NORMALIZER_NFC   UNORM_NFC

Definition at line 30 of file normalizer.h.

#define NORMALIZER_NFD   UNORM_NFD

Definition at line 26 of file normalizer.h.

#define NORMALIZER_NFKC   UNORM_NFKC

Definition at line 32 of file normalizer.h.

#define NORMALIZER_NFKD   UNORM_NFKD

Definition at line 28 of file normalizer.h.

#define NORMALIZER_NONE   UNORM_NONE

Definition at line 24 of file normalizer.h.


Function Documentation

Definition at line 32 of file normalizer.c.

{
       if( !Normalizer_ce_ptr )
       {
              zend_error( E_ERROR, "Normalizer class not defined" );
              return;
       }

       #define NORMALIZER_EXPOSE_CONST(x) REGISTER_LONG_CONSTANT(#x, x, CONST_CS)
       #define NORMALIZER_EXPOSE_CLASS_CONST(x) zend_declare_class_constant_long( Normalizer_ce_ptr, ZEND_STRS( #x ) - 1, NORMALIZER_##x TSRMLS_CC );
       #define NORMALIZER_EXPOSE_CUSTOM_CLASS_CONST(name, value) zend_declare_class_constant_long( Normalizer_ce_ptr, ZEND_STRS( name ) - 1, value TSRMLS_CC );

       /* Normalization form constants */
       NORMALIZER_EXPOSE_CLASS_CONST( NONE );
       NORMALIZER_EXPOSE_CLASS_CONST( FORM_D );
       NORMALIZER_EXPOSE_CLASS_CONST( NFD );
       NORMALIZER_EXPOSE_CLASS_CONST( FORM_KD );
       NORMALIZER_EXPOSE_CLASS_CONST( NFKD );
       NORMALIZER_EXPOSE_CLASS_CONST( FORM_C );
       NORMALIZER_EXPOSE_CLASS_CONST( NFC );
       NORMALIZER_EXPOSE_CLASS_CONST( FORM_KC );
       NORMALIZER_EXPOSE_CLASS_CONST( NFKC );

       #undef NORMALIZER_EXPOSE_CUSTOM_CLASS_CONST
       #undef NORMALIZER_EXPOSE_CLASS_CONST
       #undef NORMALIZER_EXPOSE_CONST
}

Here is the call graph for this function:

Here is the caller graph for this function: