Lines Matching refs:cp
38 …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
51 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
63 tmp_len = MultiByteToWideChar(cp, flags, in, tmp_len, ret, ret_len); in php_win32_cp_to_w_int()
96 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
98 return php_win32_cp_to_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_to_w()
244 …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
258 target_len = WideCharToMultiByte(cp, flags, in, tmp_len, NULL, 0, NULL, NULL); in php_win32_cp_from_w_int()
270 r = WideCharToMultiByte(cp, flags, in, tmp_len, target, target_len, NULL, NULL); in php_win32_cp_from_w_int()
303 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
305 return php_win32_cp_from_w_int(in, in_len, out_len, cp, flags); in php_win32_cp_conv_from_w()
375 const struct php_win32_cp *cp = &php_win32_cp_map[i]; in php_win32_cp_get_by_enc() local
377 if (!cp->name || !cp->name[0]) { in php_win32_cp_get_by_enc()
381 if (0 == zend_binary_strcasecmp(enc, enc_len, cp->name, strlen(cp->name))) { in php_win32_cp_get_by_enc()
382 return cp; in php_win32_cp_get_by_enc()
385 if (cp->enc) { in php_win32_cp_get_by_enc()
386 char *start = cp->enc, *idx; in php_win32_cp_get_by_enc()
392 return cp; in php_win32_cp_get_by_enc()
399 return cp; in php_win32_cp_get_by_enc()
548 const struct php_win32_cp *cp; in php_win32_cp_cli_do_setup() local
555 cp = php_win32_cp_set_by_id(id); in php_win32_cp_cli_do_setup()
557 cp = cur_cp; in php_win32_cp_cli_do_setup()
560 if (!cp) { in php_win32_cp_cli_do_setup()
565 return cp; in php_win32_cp_cli_do_setup()
568 return cp; in php_win32_cp_cli_do_setup()
596 const struct php_win32_cp *cp; in PHP_FUNCTION() local
608 cp = php_win32_cp_cli_do_setup((DWORD)id); in PHP_FUNCTION()
610 cp = php_win32_cp_set_by_id((DWORD)id); in PHP_FUNCTION()
612 if (!cp) { in PHP_FUNCTION()
617 RETURN_BOOL(cp->id == id); in PHP_FUNCTION()
631 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
632 RETURN_LONG(cp->id); in PHP_FUNCTION()
639 const struct php_win32_cp *cp = php_win32_cp_get_current(); in PHP_FUNCTION() local
640 RETURN_LONG(cp->id); in PHP_FUNCTION()