dateformat_helpers.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  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. #ifndef DATEFORMAT_HELPERS_H
  17. #define DATEFORMAT_HELPERS_H
  18. #ifndef __cplusplus
  19. #error For C++ only
  20. #endif
  21. #include <unicode/calendar.h>
  22. extern "C" {
  23. #include "../php_intl.h"
  24. }
  25. int datefmt_process_calendar_arg(zval* calendar_zv,
  26. Locale const& locale,
  27. const char *func_name,
  28. intl_error *err,
  29. Calendar*& cal,
  30. long& cal_int_type,
  31. bool& calendar_owned TSRMLS_DC);
  32. #endif /* DATEFORMAT_HELPERS_H */