Lines Matching refs:in_len
38 __forceinline static wchar_t *php_win32_cp_to_w_int(const char* in, size_t in_len, size_t *out_len,… in php_win32_cp_to_w_int() argument
43 if (!in || in_len > (size_t)INT_MAX) { in php_win32_cp_to_w_int()
47 assert(in_len ? (in[in_len] == L'\0') : 1); in php_win32_cp_to_w_int()
49 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_to_w_int()
71 assert(ret && !in_len ? wcslen(ret) == ret_len - 1 : 1); in php_win32_cp_to_w_int()
82 PW32CP wchar_t *php_win32_cp_conv_utf8_to_w(const char* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_utf8_to_w() argument
84 return php_win32_cp_to_w_int(in, in_len, out_len, CP_UTF8, MB_ERR_INVALID_CHARS); in php_win32_cp_conv_utf8_to_w()
87 PW32CP wchar_t *php_win32_cp_conv_cur_to_w(const char* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_cur_to_w() argument
91 ret = php_win32_cp_to_w_int(in, in_len, out_len, cur_cp->id, cur_cp->from_w_fl); in php_win32_cp_conv_cur_to_w()
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()
106 PW32CP wchar_t *php_win32_cp_conv_ascii_to_w(const char* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_ascii_to_w() argument
113 size_t save_in_len = in_len; in php_win32_cp_conv_ascii_to_w()
116 assert(in && in_len ? in[in_len] == '\0' : 1); in php_win32_cp_conv_ascii_to_w()
121 } else if (0 == in_len) { in php_win32_cp_conv_ascii_to_w()
123 in_len = strlen(in); in php_win32_cp_conv_ascii_to_w()
126 end = in + in_len; in php_win32_cp_conv_ascii_to_w()
128 if (in_len > 15) { in php_win32_cp_conv_ascii_to_w()
174 ret = malloc((in_len+1)*sizeof(wchar_t)); in php_win32_cp_conv_ascii_to_w()
183 if (in_len > 15) { in php_win32_cp_conv_ascii_to_w()
232 ret[in_len] = L'\0'; in php_win32_cp_conv_ascii_to_w()
234 assert(ret && !save_in_len ? wcslen(ret) == in_len : 1); in php_win32_cp_conv_ascii_to_w()
237 *out_len = in_len; in php_win32_cp_conv_ascii_to_w()
244 __forceinline static char *php_win32_cp_from_w_int(const wchar_t* in, size_t in_len, size_t *out_le… in php_win32_cp_from_w_int() argument
250 if (!in || in_len > INT_MAX) { in php_win32_cp_from_w_int()
254 assert(in_len ? in[in_len] == '\0' : 1); in php_win32_cp_from_w_int()
256 tmp_len = !in_len ? -1 : (int)in_len + 1; in php_win32_cp_from_w_int()
278 assert(target && !in_len ? strlen(target) == target_len - 1 : 1); in php_win32_cp_from_w_int()
289 PW32CP char *php_win32_cp_conv_w_to_utf8(const wchar_t* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_w_to_utf8() argument
291 return php_win32_cp_from_w_int(in, in_len, out_len, CP_UTF8, WC_ERR_INVALID_CHARS); in php_win32_cp_conv_w_to_utf8()
294 PW32CP char *php_win32_cp_conv_w_to_cur(const wchar_t* in, size_t in_len, size_t *out_len) in php_win32_cp_conv_w_to_cur() argument
298 ret = php_win32_cp_from_w_int(in, in_len, out_len, cur_cp->id, cur_cp->from_w_fl); in php_win32_cp_conv_w_to_cur()
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()