xref: /PHP-8.3/ext/intl/formatter/formatter_data.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: Stanislav Malyshev <stas@zend.com>                          |
12    +----------------------------------------------------------------------+
13  */
14 
15 #ifndef FORMATTER_DATA_H
16 #define FORMATTER_DATA_H
17 
18 #include <php.h>
19 
20 #include <unicode/unum.h>
21 
22 #include "intl_error.h"
23 
24 typedef struct {
25 	// error hangling
26 	intl_error      error;
27 
28 	// formatter handling
29 	UNumberFormat*  unum;
30 } formatter_data;
31 
32 formatter_data* formatter_data_create( void );
33 void formatter_data_init( formatter_data* nf_data );
34 void formatter_data_free( formatter_data* nf_data );
35 
36 #endif // FORMATTER_DATA_H
37