1 /*
2    +----------------------------------------------------------------------+
3    | This source file is subject to version 3.01 of the PHP license,      |
4    | that is bundled with this package in the file LICENSE, and is        |
5    | available through the world-wide-web at the following url:           |
6    | http://www.php.net/license/3_01.txt                                  |
7    | If you did not receive a copy of the PHP license and are unable to   |
8    | obtain it through the world-wide-web, please send a note to          |
9    | license@php.net so we can mail you a copy immediately.               |
10    +----------------------------------------------------------------------+
11    | Authors: Ed Batutis <ed@batutis.com>                                 |
12    +----------------------------------------------------------------------+
13  */
14 
15 #include "normalizer_class.h"
16 #include "php_intl.h"
17 #include "normalizer_arginfo.h"
18 #include "intl_error.h"
19 
20 #include <unicode/unorm.h>
21 
22 zend_class_entry *Normalizer_ce_ptr = NULL;
23 
24 /*
25  * 'Normalizer' class registration structures & functions
26  */
27 
28 /* {{{ normalizer_register_Normalizer_class
29  * Initialize 'Normalizer' class
30  */
normalizer_register_Normalizer_class(void)31 void normalizer_register_Normalizer_class( void )
32 {
33 	zend_class_entry ce;
34 
35 	/* Create and register 'Normalizer' class. */
36 	INIT_CLASS_ENTRY( ce, "Normalizer", class_Normalizer_methods );
37 	ce.create_object = NULL;
38 	Normalizer_ce_ptr = zend_register_internal_class( &ce );
39 
40 	/* Declare 'Normalizer' class properties. */
41 	if( !Normalizer_ce_ptr )
42 	{
43 		zend_error( E_ERROR,
44 			"Normalizer: attempt to create properties "
45 			"on a non-registered class." );
46 		return;
47 	}
48 }
49 /* }}} */
50