Back to index

php5  5.3.10
Defines | Functions
normalizer.c File Reference
#include "normalizer_class.h"
#include "normalizer.h"
#include <unicode/utypes.h>
#include <unicode/unorm.h>
#include <unicode/ustring.h>

Go to the source code of this file.

Defines

#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 );

Functions

void normalizer_register_constants (INIT_FUNC_ARGS)

Define Documentation


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: