Home
last modified time | relevance | path

Searched refs:codepage (Results 1 – 17 of 17) sorted by relevance

/PHP-8.0/ext/com_dotnet/
H A Dcom_olechar.c32 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()
76 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL); in php_com_olestring_to_string()
80 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL); in php_com_olestring_to_string()
105 BSTR php_com_string_to_bstr(zend_string *string, int codepage) in php_com_string_to_bstr() argument
108 DWORD flags = codepage == CP_UTF8 ? 0 : MB_PRECOMPOSED | MB_ERR_INVALID_CHARS; in php_com_string_to_bstr()
112 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, NULL, 0)) <=… in php_com_string_to_bstr()
132 zend_string *php_com_bstr_to_string(BSTR bstr, int codepage) in php_com_bstr_to_string() argument
138 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, NULL, 0, NULL, NULL); in php_com_bstr_to_string()
[all …]
H A Dphp_com_dotnet_internal.h84 size_t *string_len, int codepage);
86 size_t string_len, int codepage);
87 BSTR php_com_string_to_bstr(zend_string *string, int codepage);
88 zend_string *php_com_bstr_to_string(BSTR bstr, int codepage);
117 PHP_COM_DOTNET_API void php_com_variant_from_zval(VARIANT *v, zval *z, int codepage);
118 PHP_COM_DOTNET_API int php_com_zval_from_variant(zval *z, VARIANT *v, int codepage);
129 int codepage);
131 int codepage);
135 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib_via_cache(const char *search_string, int codepage
136 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib(char *search_string, int codepage);
[all …]
H A Dcom_variant.c144 safe_array_from_zval(v, z, codepage); in php_com_variant_from_zval()
240 php_com_wrap_dispatch(z, disp, codepage); in php_com_zval_from_variant()
259 php_com_wrap_variant(z, v, codepage); in php_com_zval_from_variant()
427 zend_long codepage = CP_ACP; in PHP_METHOD() local
439 "z!|ll", &zvalue, &vt, &codepage)) { in PHP_METHOD()
447 obj->code_page = (int)codepage; in PHP_METHOD()
544 int codepage = CP_ACP; in variant_binary_operation() local
569 php_com_variant_from_zval(vleft, zleft, codepage); in variant_binary_operation()
739 int codepage = CP_ACP; in variant_unary_operation() local
830 int codepage = CP_ACP; in PHP_FUNCTION() local
[all …]
H A Dcom_typeinfo.c61 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib(char *search_string, int codepage) in php_com_load_typelib() argument
78 p = php_com_string_to_olestring(search_string, strlen(search_string), codepage); in php_com_load_typelib()
155 TL = php_com_load_typelib(str, codepage); in php_com_load_typelib()
211 const_name = php_com_olestring_to_string(bstr_ids, &len, codepage); in php_com_import_typelib()
215 php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage); in php_com_import_typelib()
281 TL = php_com_load_typelib(name_dup, codepage); in php_com_load_typelib_via_cache()
460 static char *php_com_string_from_clsid(const CLSID *clsid, int codepage) in php_com_string_from_clsid() argument
466 clsid_str = php_com_olestring_to_string(ole_clsid, NULL, codepage); in php_com_string_from_clsid()
499 ansiname = php_com_olestring_to_string(olename, &ansinamelen, codepage); in php_com_process_typeinfo()
502 guidstring = php_com_string_from_clsid(&attr->guid, codepage); in php_com_process_typeinfo()
[all …]
H A Dcom_misc.c46 int codepage) in php_com_wrap_dispatch() argument
52 obj->code_page = codepage; in php_com_wrap_dispatch()
69 int codepage) in php_com_wrap_variant() argument
75 obj->code_page = codepage; in php_com_wrap_variant()
H A Dcom_extension.stub.php57 function com_get_active_object(string $prog_id, ?int $codepage = null): variant {} argument
71 … public function __construct(mixed $value = null, int $type = VT_EMPTY, int $codepage = CP_ACP) {} argument
76 …struct(string $module_name, array|string|null $server_name = null, int $codepage = CP_ACP, string … argument
82 …public function __construct(string $assembly_name, string $datatype_name, int $codepage = CP_ACP) … argument
H A Dcom_extension_arginfo.h86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 1, "null")
116 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP")
122 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP")
130 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP")
H A Dcom_persist.c287 long codepage; member
342 &len, helper->codepage); in CPH_METHOD()
390 olefilename = php_com_string_to_olestring(fullpath, strlen(fullpath), helper->codepage); in CPH_METHOD()
449 olefilename = php_com_string_to_olestring(fullpath, strlen(fullpath), helper->codepage); in CPH_METHOD()
660 helper->codepage = obj->code_page; in CPH_METHOD()
H A Dcom_com.c818 int codepage = COMG(code_page); in PHP_FUNCTION() local
831 pTL = php_com_load_typelib_via_cache(name, codepage); in PHP_FUNCTION()
833 if (php_com_import_typelib(pTL, cs ? CONST_CS : 0, codepage) == SUCCESS) { in PHP_FUNCTION()
/PHP-8.0/ext/com_dotnet/tests/
H A Dbug73679.phpt2 Bug #73679 DOTNET read access violation using invalid codepage
18 Fatal error: Uncaught com_exception: Could not create .Net object - invalid codepage! in %sbug73679…
/PHP-8.0/ext/standard/tests/strings/
H A Dsapi_windows_cp_conv.phpt6 if (!sapi_windows_cp_set(1252) || !sapi_windows_cp_set(65001)) die('skip codepage not available');
/PHP-8.0/ext/standard/tests/file/windows_mb_path/
H A Dutil.inc50 die("skip this test expect codepage $cp");
/PHP-8.0/win32/build/
H A Dconfig.w32271 getrusage.c ftok.c ioutil.c codepage.c nice.c \
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php1486 function sapi_windows_cp_set(int $codepage): bool {} argument
H A Dbasic_functions_arginfo.h2177 ZEND_ARG_TYPE_INFO(0, codepage, IS_LONG, 0)
/PHP-8.0/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます9043 #>>>>>>>>>>>>29 ubyte =0 \b, codepage ID=0x%x
9045 >>>>>>>>>>>>29 ubyte >0 \b, codepage ID=0x%x
21142 # A lookup table of the chars in the map's codepage, and their collating sequence
25485 >>(78.L+0x1C) belong !0 \b, codepage %d
27886 # look for explict codepage keyword
27890 # skip unknown or buggy codepage string 0 like in fdo78502.rtf
27892 # codepage string: 437~United States IBM, ..., 1252~WesternEuropean, ..., 57011~Punjabi
H A Dmagic9043 #>>>>>>>>>>>>29 ubyte =0 \b, codepage ID=0x%x
9045 >>>>>>>>>>>>29 ubyte >0 \b, codepage ID=0x%x
21142 # A lookup table of the chars in the map's codepage, and their collating sequence
25485 >>(78.L+0x1C) belong !0 \b, codepage %d
27886 # look for explict codepage keyword
27890 # skip unknown or buggy codepage string 0 like in fdo78502.rtf
27892 # codepage string: 437~United States IBM, ..., 1252~WesternEuropean, ..., 57011~Punjabi

Completed in 216 milliseconds