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 
26 extern "C" {
27 #include "../php_intl.h"
28 }
29 
30 int datefmt_process_calendar_arg(zval* calendar_zv,
31 								 Locale const& locale,
32 								 const char *func_name,
33 								 intl_error *err,
34 								 Calendar*& cal,
35 								 zend_long& cal_int_type,
36 								 bool& calendar_owned);
37 
38 #endif	/* DATEFORMAT_HELPERS_H */
39