locale_class.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: Kirti Velankar <kirtig@yahoo-inc.com> |
  12. +----------------------------------------------------------------------+
  13. */
  14. #ifndef LOCALE_CLASS_H
  15. #define LOCALE_CLASS_H
  16. #include <php.h>
  17. #include "intl_common.h"
  18. #include "intl_error.h"
  19. #include <unicode/uloc.h>
  20. typedef struct {
  21. zend_object zo;
  22. // ICU locale
  23. char* uloc1;
  24. } Locale_object;
  25. void locale_register_Locale_class( void );
  26. extern zend_class_entry *Locale_ce_ptr;
  27. /* Auxiliary macros */
  28. #define LOCALE_METHOD_INIT_VARS \
  29. zval* object = NULL; \
  30. intl_error_reset( NULL ); \
  31. #endif // #ifndef LOCALE_CLASS_H