Lines Matching refs:cp

33 …char_t *php_win32_cp_to_w_int(const char* in, size_t in_len, size_t *out_len, UINT cp, DWORD flags)  in php_win32_cp_to_w_int()  argument
46 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
58 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
91 PW32CP wchar_t *php_win32_cp_conv_to_w(DWORD cp, DWORD flags, const char* in, size_t in_len, size_t… in php_win32_cp_conv_to_w() argument
93 return php_win32_cp_to_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_to_w()
171 …r *php_win32_cp_from_w_int(const wchar_t* in, size_t in_len, size_t *out_len, UINT cp, DWORD flags) in php_win32_cp_from_w_int() argument
185 target_len = WideCharToMultiByte(cp, flags, in, tmp_len, NULL, 0, NULL, NULL); in php_win32_cp_from_w_int()
197 r = WideCharToMultiByte(cp, flags, in, tmp_len, target, target_len, NULL, NULL); in php_win32_cp_from_w_int()
230 PW32CP char *php_win32_cp_conv_from_w(DWORD cp, DWORD flags, const wchar_t* in, size_t in_len, size… in php_win32_cp_conv_from_w() argument
232 return php_win32_cp_from_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_from_w()
307 const struct php_win32_cp *cp = &php_win32_cp_map[i]; in php_win32_cp_get_by_enc() local
309 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
313 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
314 return cp; in php_win32_cp_get_by_enc()
317 if (cp->enc) { in php_win32_cp_get_by_enc()
318 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
324 return cp; in php_win32_cp_get_by_enc()
331 return cp; in php_win32_cp_get_by_enc()
481 const struct php_win32_cp *cp; in php_win32_cp_cli_do_setup() local
488 cp = php_win32_cp_set_by_id(id); in php_win32_cp_cli_do_setup()
490 cp = cur_cp; in php_win32_cp_cli_do_setup()
493 if (!cp) { in php_win32_cp_cli_do_setup()
498 return cp; in php_win32_cp_cli_do_setup()
501 return cp; in php_win32_cp_cli_do_setup()
530 const struct php_win32_cp *cp; in PHP_FUNCTION() local
542 cp = php_win32_cp_cli_do_setup((DWORD)id); in PHP_FUNCTION()
544 cp = php_win32_cp_set_by_id((DWORD)id); in PHP_FUNCTION()
546 if (!cp) { in PHP_FUNCTION()
551 RETURN_BOOL(cp->id == id); in PHP_FUNCTION()
571 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
572 RETURN_LONG(cp->id); in PHP_FUNCTION()