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: Vadim Savchuk <vsavchuk@productengine.com>                  |
12    |          Dmitry Lakhtyuk <dlakhtyuk@productengine.com>               |
13    +----------------------------------------------------------------------+
14  */
15 
16 #ifndef COLLATOR_CONVERT_H
17 #define COLLATOR_CONVERT_H
18 
19 #include <php.h>
20 #include <unicode/utypes.h>
21 
22 void collator_convert_hash_from_utf8_to_utf16( HashTable* hash, UErrorCode* status );
23 void collator_convert_hash_from_utf16_to_utf8( HashTable* hash, UErrorCode* status );
24 
25 zval* collator_convert_zstr_utf16_to_utf8( zval* utf16_zval, zval *rv );
26 zend_string *collator_convert_zstr_utf8_to_utf16(zend_string *utf8_str);
27 
28 zval* collator_normalize_sort_argument( zval* arg, zval *rv );
29 zval* collator_convert_object_to_string( zval* obj, zval *rv );
30 zval* collator_convert_string_to_number( zval* arg, zval *rv );
31 zval* collator_convert_string_to_number_if_possible( zval* str, zval *rv );
32 zval* collator_convert_string_to_double( zval* str, zval *rv );
33 
34 zend_string *collator_zval_to_string(zval *arg);
35 
36 #endif // COLLATOR_CONVERT_H
37