Home
last modified time | relevance | path

Searched refs:ret_len (Results 1 – 8 of 8) sorted by relevance

/PHP-7.2/win32/
H A Dioutil.c486 size_t ret_len, len_adjust = 0, pathw_len; in php_win32_ioutil_dirname() local
548 ret_len = (endw + 1 - startw); in php_win32_ioutil_dirname()
552 ret = php_win32_ioutil_conv_w_to_any(startw, ret_len, &ret_len); in php_win32_ioutil_dirname()
554 memmove(start, ret, ret_len+1); in php_win32_ioutil_dirname()
555 assert(start[ret_len] == '\0'); in php_win32_ioutil_dirname()
559 return ret_len; in php_win32_ioutil_dirname()
566 size_t ret_len = len; in php_win32_ioutil_normalize_path_w() local
589 ret_len = wcslen(canonicalw); in php_win32_ioutil_normalize_path_w()
590 if (ret_len != len) { in php_win32_ioutil_normalize_path_w()
591 if (ret_len > len) { in php_win32_ioutil_normalize_path_w()
[all …]
H A Dcodepage.c36 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
46 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
47 if (ret_len == 0) { in php_win32_cp_to_w_int()
52 ret = malloc(ret_len * sizeof(wchar_t)); 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()
65 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int()
66 assert(ret && !in_len ? wcslen(ret) == ret_len - 1 : 1); in php_win32_cp_to_w_int()
68 ret[ret_len-1] = L'\0'; in php_win32_cp_to_w_int()
71 *out_len = ret_len - 1; in php_win32_cp_to_w_int()
598 size_t subj_len, ret_len, tmpw_len; in PHP_FUNCTION() local
[all …]
/PHP-7.2/ext/intl/grapheme/
H A Dgrapheme_util.c224 int ret_len = len; in grapheme_ascii_check() local
230 return ret_len; in grapheme_ascii_check()
240 int ret_len, pos; in grapheme_split_string() local
253 for ( ret_len = 0; pos != UBRK_DONE; ) { in grapheme_split_string()
259 if ( NULL != boundary_array && ret_len < boundary_array_len ) { in grapheme_split_string()
260 boundary_array[ret_len] = pos; in grapheme_split_string()
263 ret_len++; in grapheme_split_string()
269 return ret_len; in grapheme_split_string()
276 int ret_len = 0; in grapheme_count_graphemes() local
287 ret_len++; in grapheme_count_graphemes()
[all …]
H A Dgrapheme_string.c61 zend_long ret_len; in PHP_FUNCTION() local
70 ret_len = grapheme_ascii_check((unsigned char *)string, string_len); in PHP_FUNCTION()
72 if ( ret_len >= 0 ) in PHP_FUNCTION()
91 ret_len = grapheme_split_string(ustring, ustring_len, NULL, 0 ); in PHP_FUNCTION()
97 if (ret_len >= 0) { in PHP_FUNCTION()
98 RETVAL_LONG(ret_len); in PHP_FUNCTION()
/PHP-7.2/ext/mbstring/
H A Dphp_unicode.c271 …I char *php_unicode_convert_case(int case_mode, const char *srcstr, size_t srclen, size_t *ret_len, in php_unicode_convert_case() argument
332 newstr = php_mb_convert_encoding(unicode, unicode_len, src_encoding, "UCS-4BE", ret_len); in php_unicode_convert_case()
H A Dmbstring.c3429 size_t ret_len; in PHP_FUNCTION() local
3456 size_t ret_len; in PHP_FUNCTION() local
3483 size_t ret_len; in PHP_FUNCTION() local
5049 size_t ret_len; in php_mb_ord() local
5135 size_t ret_len; in php_mb_chr() local
5162 ret_len = 1; in php_mb_chr()
5167 ret_len = 2; in php_mb_chr()
5173 ret_len = 3; in php_mb_chr()
5180 ret_len = 4; in php_mb_chr()
5234 size_t ret_len; in PHP_FUNCTION() local
[all …]
/PHP-7.2/ext/intl/converter/
H A Dconverter.c660 int32_t temp_len, ret_len; in php_converter_do_convert() local
689 ret_len = ucnv_fromUChars(dest_cnv, NULL, 0, temp, temp_len, &error); in php_converter_do_convert()
696 ret = zend_string_alloc(ret_len, 0); in php_converter_do_convert()
700 ZSTR_LEN(ret) = ucnv_fromUChars(dest_cnv, ZSTR_VAL(ret), ret_len+1, temp, temp_len, &error); in php_converter_do_convert()
/PHP-7.2/Zend/
H A Dzend_virtual_cwd.c184 size_t ret_len, targetw_len, offset = 0; in php_sys_readlink() local
234 ret = php_win32_ioutil_conv_w_to_any(targetw + offset, targetw_len - offset, &ret_len); in php_sys_readlink()
235 if (!ret || ret_len >= MAXPATHLEN) { in php_sys_readlink()
241 memcpy(target, ret, ret_len + 1); in php_sys_readlink()
247 return ret_len; in php_sys_readlink()

Completed in 49 milliseconds