root/ext/intl/transliterator/transliterator.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. transliterator_register_constants

   1 /*
   2    +----------------------------------------------------------------------+
   3    | PHP Version 7                                                        |
   4    +----------------------------------------------------------------------+
   5    | This source file is subject to version 3.01 of the PHP license,      |
   6    | that is bundled with this package in the file LICENSE, and is        |
   7    | available through the world-wide-web at the following url:           |
   8    | http://www.php.net/license/3_01.txt                                  |
   9    | If you did not receive a copy of the PHP license and are unable to   |
  10    | obtain it through the world-wide-web, please send a note to          |
  11    | license@php.net so we can mail you a copy immediately.               |
  12    +----------------------------------------------------------------------+
  13    | Authors: Gustavo Lopes <cataphract@php.net>                          |
  14    +----------------------------------------------------------------------+
  15  */
  16 
  17 #ifdef HAVE_CONFIG_H
  18 #include "config.h"
  19 #endif
  20 
  21 #include "transliterator_class.h"
  22 #include "transliterator.h"
  23 #include "intl_convert.h"
  24 
  25 #include <unicode/ustring.h>
  26 
  27 /* {{{ transliterator_register_constants
  28  * Register constants common for both (OO and procedural) APIs.
  29  */
  30 void transliterator_register_constants( INIT_FUNC_ARGS )
  31 {
  32         if( !Transliterator_ce_ptr )
  33         {
  34                 zend_error( E_ERROR, "Transliterator class not defined" );
  35                 return;
  36         }
  37 
  38         #define TRANSLITERATOR_EXPOSE_CONST( x ) REGISTER_LONG_CONSTANT( #x, x, CONST_PERSISTENT | CONST_CS )
  39         #define TRANSLITERATOR_EXPOSE_CLASS_CONST( x ) zend_declare_class_constant_long( Transliterator_ce_ptr, ZEND_STRS( #x ) - 1, TRANSLITERATOR_##x );
  40         #define TRANSLITERATOR_EXPOSE_CUSTOM_CLASS_CONST( name, value ) zend_declare_class_constant_long( Transliterator_ce_ptr, ZEND_STRS( name ) - 1, value );*/
  41 
  42         /* Normalization form constants */
  43         TRANSLITERATOR_EXPOSE_CLASS_CONST( FORWARD );
  44         TRANSLITERATOR_EXPOSE_CLASS_CONST( REVERSE );
  45 
  46         #undef NORMALIZER_EXPOSE_CUSTOM_CLASS_CONST
  47         #undef NORMALIZER_EXPOSE_CLASS_CONST
  48         #undef NORMALIZER_EXPOSE_CONST
  49 }
  50 /* }}} */
  51 
  52 /*
  53  * Local variables:
  54  * tab-width: 4
  55  * c-basic-offset: 4
  56  * End:
  57  * vim600: noet sw=4 ts=4 fdm=marker
  58  * vim<600: noet sw=4 ts=4
  59  */

/* [<][>][^][v][top][bottom][index][help] */