xref: /PHP-8.3/ext/intl/locale/locale_class.h (revision 01b3fc03)
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    | https://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: Kirti Velankar <kirtig@yahoo-inc.com>                       |
12    +----------------------------------------------------------------------+
13 */
14 
15 #ifndef LOCALE_CLASS_H
16 #define LOCALE_CLASS_H
17 
18 #include <php.h>
19 
20 #include "intl_common.h"
21 #include "intl_error.h"
22 
23 #include <unicode/uloc.h>
24 
25 typedef struct {
26 	zend_object     zo;
27 
28 	// ICU locale
29 	char*      		uloc1;
30 
31 } Locale_object;
32 
33 
34 void locale_register_Locale_class( void );
35 
36 extern zend_class_entry *Locale_ce_ptr;
37 
38 /* Auxiliary macros */
39 
40 #define LOCALE_METHOD_INIT_VARS       \
41     zval*             	object  = NULL;   \
42     intl_error_reset( NULL ); \
43 
44 #endif // #ifndef LOCALE_CLASS_H
45