Lines Matching refs:codepage
29 …OTNET_API OLECHAR *php_com_string_to_olestring(const char *string, size_t string_len, int codepage) in php_com_string_to_olestring() argument
32 DWORD flags = codepage == CP_UTF8 ? 0 : MB_PRECOMPOSED | MB_ERR_INVALID_CHARS; in php_com_string_to_olestring()
37 string_len = MultiByteToWideChar(codepage, flags, string, -1, NULL, 0); in php_com_string_to_olestring()
48 ok = MultiByteToWideChar(codepage, flags, string, (int)string_len, olestring, (int)string_len); in php_com_string_to_olestring()
70 PHP_COM_DOTNET_API zend_string *php_com_olestring_to_string(OLECHAR *olestring, int codepage) in php_com_olestring_to_string() argument
75 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL); in php_com_olestring_to_string()
82 length = WideCharToMultiByte(codepage, 0, olestring, -1, ZSTR_VAL(string), length, NULL, NULL); in php_com_olestring_to_string()
100 BSTR php_com_string_to_bstr(zend_string *string, int codepage) in php_com_string_to_bstr() argument
103 DWORD flags = codepage == CP_UTF8 ? 0 : MB_PRECOMPOSED | MB_ERR_INVALID_CHARS; in php_com_string_to_bstr()
107 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, NULL, 0)) <=… in php_com_string_to_bstr()
113 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, bstr, wc_len… in php_com_string_to_bstr()
127 zend_string *php_com_bstr_to_string(BSTR bstr, int codepage) in php_com_bstr_to_string() argument
133 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, NULL, 0, NULL, NULL); in php_com_bstr_to_string()
136 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, ZSTR_VAL(string), mb_len, NULL, NULL); in php_com_bstr_to_string()