Back to index

php5  5.3.10
resourcebundle_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: Hans-Peter Oeri (University of St.Gallen) <hp@oeri.ch>      |
00014    +----------------------------------------------------------------------+
00015  */
00016 
00017 #ifndef RESOURCEBUNDLE_CLASS_H
00018 #define RESOURCEBUNDLE_CLASS_H
00019 
00020 #include <unicode/ures.h>
00021 
00022 #include <zend.h>
00023 #include "php.h"
00024 
00025 #include "intl_error.h"
00026 
00027 typedef struct {
00028        zend_object     zend;
00029        intl_error      error;
00030 
00031        UResourceBundle *me;
00032        UResourceBundle *child;
00033 } ResourceBundle_object;
00034 
00035 #define RESOURCEBUNDLE_METHOD_INIT_VARS          INTL_METHOD_INIT_VARS(ResourceBundle, rb)
00036 #define RESOURCEBUNDLE_METHOD_FETCH_OBJECT       INTL_METHOD_FETCH_OBJECT(ResourceBundle, rb)
00037 #define RESOURCEBUNDLE_OBJECT(rb)                (rb)->me
00038 
00039 void resourcebundle_register_class( TSRMLS_D );
00040 extern zend_class_entry *ResourceBundle_ce_ptr;
00041 
00042 PHP_FUNCTION( resourcebundle_create );
00043 PHP_FUNCTION( resourcebundle_get );
00044 PHP_FUNCTION( resourcebundle_count );
00045 PHP_FUNCTION( resourcebundle_locales );
00046 PHP_FUNCTION( resourcebundle_get_error_code );
00047 PHP_FUNCTION( resourcebundle_get_error_message );
00048 
00049 #endif // #ifndef RESOURCEBUNDLE_CLASS_H