Lines Matching refs:cp

34 …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
47 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
59 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
92 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
94 return php_win32_cp_to_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_to_w()
210 …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
224 target_len = WideCharToMultiByte(cp, flags, in, tmp_len, NULL, 0, NULL, NULL); in php_win32_cp_from_w_int()
236 r = WideCharToMultiByte(cp, flags, in, tmp_len, target, target_len, NULL, NULL); in php_win32_cp_from_w_int()
269 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
271 return php_win32_cp_from_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_from_w()
341 const struct php_win32_cp *cp = &php_win32_cp_map[i]; in php_win32_cp_get_by_enc() local
343 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
347 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
348 return cp; in php_win32_cp_get_by_enc()
351 if (cp->enc) { in php_win32_cp_get_by_enc()
352 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
358 return cp; in php_win32_cp_get_by_enc()
365 return cp; in php_win32_cp_get_by_enc()
514 const struct php_win32_cp *cp; in php_win32_cp_cli_do_setup() local
521 cp = php_win32_cp_set_by_id(id); in php_win32_cp_cli_do_setup()
523 cp = cur_cp; in php_win32_cp_cli_do_setup()
526 if (!cp) { in php_win32_cp_cli_do_setup()
531 return cp; in php_win32_cp_cli_do_setup()
534 return cp; in php_win32_cp_cli_do_setup()
562 const struct php_win32_cp *cp; in PHP_FUNCTION() local
574 cp = php_win32_cp_cli_do_setup((DWORD)id); in PHP_FUNCTION()
576 cp = php_win32_cp_set_by_id((DWORD)id); in PHP_FUNCTION()
578 if (!cp) { in PHP_FUNCTION()
583 RETURN_BOOL(cp->id == id); in PHP_FUNCTION()
597 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
598 RETURN_LONG(cp->id); in PHP_FUNCTION()
605 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
606 RETURN_LONG(cp->id); in PHP_FUNCTION()