summaryrefslogtreecommitdiff
path: root/ext/unicode/php_unicode.h
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2005-08-11 23:36:07 +0000
committerAndrei Zmievski <andrei@php.net>2005-08-11 23:36:07 +0000
commit264cec8be641d1c2ea0c95d915d506c4fdbc751a (patch)
treee9f980e16f707842248125cf22efabec782cfece /ext/unicode/php_unicode.h
parentb80cb7bd2f721dad13a97a1300c6dc56934daaf7 (diff)
downloadphp-git-264cec8be641d1c2ea0c95d915d506c4fdbc751a.tar.gz
Unicode support.
Diffstat (limited to 'ext/unicode/php_unicode.h')
-rw-r--r--ext/unicode/php_unicode.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/ext/unicode/php_unicode.h b/ext/unicode/php_unicode.h
new file mode 100644
index 0000000000..40b5f3670a
--- /dev/null
+++ b/ext/unicode/php_unicode.h
@@ -0,0 +1,79 @@
+/*
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.0 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_0.txt. |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: Andrei Zmievski <andrei@php.net> |
+ +----------------------------------------------------------------------+
+*/
+
+/* $ Id: $ */
+
+#ifndef PHP_UNICODE_H
+#define PHP_UNICODE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <php.h>
+
+#ifdef HAVE_UNICODE
+
+#include <php_ini.h>
+#include <SAPI.h>
+#include <ext/standard/info.h>
+
+
+extern zend_module_entry unicode_module_entry;
+#define phpext_unicode_ptr &unicode_module_entry
+
+#ifdef PHP_WIN32
+#define PHP_UNICODE_API __declspec(dllexport)
+#else
+#define PHP_UNICODE_API
+#endif
+
+PHP_MINIT_FUNCTION(unicode);
+PHP_MSHUTDOWN_FUNCTION(unicode);
+PHP_RINIT_FUNCTION(unicode);
+PHP_RSHUTDOWN_FUNCTION(unicode);
+PHP_MINFO_FUNCTION(unicode);
+
+#ifdef ZTS
+#include "TSRM.h"
+#endif
+
+PHP_FUNCTION(icu_loc_get_default);
+PHP_FUNCTION(icu_loc_set_default);
+
+extern php_stream_filter_factory php_unicode_filter_factory;
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#include <zend_unicode.h>
+#include <unicode/uloc.h>
+#endif /* PHP_HAVE_UNICODE */
+
+#endif /* PHP_UNICODE_H */
+
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */