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()
174 …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
188 target_len = WideCharToMultiByte(cp, flags, in, tmp_len, NULL, 0, NULL, NULL); in php_win32_cp_from_w_int()
200 r = WideCharToMultiByte(cp, flags, in, tmp_len, target, target_len, NULL, NULL); in php_win32_cp_from_w_int()
233 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
235 return php_win32_cp_from_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_from_w()
310 const struct php_win32_cp *cp = &php_win32_cp_map[i]; in php_win32_cp_get_by_enc() local
312 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
316 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
317 return cp; in php_win32_cp_get_by_enc()
320 if (cp->enc) { in php_win32_cp_get_by_enc()
321 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
327 return cp; in php_win32_cp_get_by_enc()
334 return cp; in php_win32_cp_get_by_enc()
484 const struct php_win32_cp *cp; in php_win32_cp_cli_do_setup() local
491 cp = php_win32_cp_set_by_id(id); in php_win32_cp_cli_do_setup()
493 cp = cur_cp; in php_win32_cp_cli_do_setup()
496 if (!cp) { in php_win32_cp_cli_do_setup()
501 return cp; in php_win32_cp_cli_do_setup()
504 return cp; in php_win32_cp_cli_do_setup()
533 const struct php_win32_cp *cp; in PHP_FUNCTION() local
545 cp = php_win32_cp_cli_do_setup((DWORD)id); in PHP_FUNCTION()
547 cp = php_win32_cp_set_by_id((DWORD)id); in PHP_FUNCTION()
549 if (!cp) { in PHP_FUNCTION()
554 RETURN_BOOL(cp->id == id); in PHP_FUNCTION()
574 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
575 RETURN_LONG(cp->id); in PHP_FUNCTION()