Back to index

php5  5.3.10
locale_class.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | This source file is subject to version 3.01 of the PHP license,      |
00006    | that is bundled with this package in the file LICENSE, and is        |
00007    | available through the world-wide-web at the following url:           |
00008    | http://www.php.net/license/3_01.txt                                  |
00009    | If you did not receive a copy of the PHP license and are unable to   |
00010    | obtain it through the world-wide-web, please send a note to          |
00011    | license@php.net so we can mail you a copy immediately.               |
00012    +----------------------------------------------------------------------+
00013    | Authors: Kirti Velankar <kirtig@yahoo-inc.com>                       |
00014    +----------------------------------------------------------------------+
00015 */
00016 
00017 /* $Id: locale_class.h 264111 2008-08-03 11:33:45Z jani $ */
00018 
00019 #ifndef LOCALE_CLASS_H
00020 #define LOCALE_CLASS_H
00021 
00022 #include <php.h>
00023 
00024 #include "intl_common.h"
00025 #include "intl_error.h"
00026 
00027 #include <unicode/uloc.h>
00028 
00029 typedef struct {
00030        zend_object     zo;
00031 
00032        // ICU locale
00033        char*                uloc1;
00034 
00035 } Locale_object;
00036 
00037 
00038 void locale_register_Locale_class( TSRMLS_D );
00039 
00040 extern zend_class_entry *Locale_ce_ptr;
00041 
00042 /* Auxiliary macros */
00043 
00044 #define LOCALE_METHOD_INIT_VARS       \
00045     zval*                   object  = NULL;   \
00046     intl_error_reset( NULL TSRMLS_CC ); \
00047 
00048 #endif // #ifndef LOCALE_CLASS_H