1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | http://www.php.net/license/3_01.txt                                  |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Gustavo Lopes <cataphract@php.net>                          |
14    +----------------------------------------------------------------------+
15 */
16 
17 #ifndef DATEFORMAT_HELPERS_H
18 #define	DATEFORMAT_HELPERS_H
19 
20 #ifndef __cplusplus
21 #error For C++ only
22 #endif
23 
24 #include <unicode/calendar.h>
25 #include <unicode/datefmt.h>
26 
27 extern "C" {
28 #include "../php_intl.h"
29 }
30 
31 using icu::Locale;
32 using icu::Calendar;
33 using icu::DateFormat;
34 
35 int datefmt_process_calendar_arg(zval* calendar_zv,
36 								 Locale const& locale,
37 								 const char *func_name,
38 								 intl_error *err,
39 								 Calendar*& cal,
40 								 zend_long& cal_int_type,
41 								 bool& calendar_owned);
42 
43 #endif	/* DATEFORMAT_HELPERS_H */
44