Home
last modified time | relevance | path

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

/PHP-7.1/win32/
H A Dioutil.c466 size_t ret_len, len_adjust = 0, pathw_len; in php_win32_ioutil_dirname() local
528 ret_len = (endw + 1 - startw); in php_win32_ioutil_dirname()
532 ret = php_win32_ioutil_conv_w_to_any(startw, ret_len, &ret_len); in php_win32_ioutil_dirname()
534 memmove(start, ret, ret_len+1); in php_win32_ioutil_dirname()
535 assert(start[ret_len] == '\0'); in php_win32_ioutil_dirname()
539 return ret_len; in php_win32_ioutil_dirname()
546 size_t ret_len = len; in php_win32_ioutil_normalize_path_w() local
564 ret_len = wcslen(canonicalw); in php_win32_ioutil_normalize_path_w()
565 if (ret_len != len) { in php_win32_ioutil_normalize_path_w()
566 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 ? 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()
595 size_t subj_len, ret_len, tmpw_len; in PHP_FUNCTION() local
[all …]
/PHP-7.1/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.1/ext/mbstring/
H A Dphp_unicode.c270 …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
331 newstr = php_mb_convert_encoding(unicode, unicode_len, src_encoding, "UCS-4BE", ret_len); in php_unicode_convert_case()
H A Dmbstring.c3304 size_t ret_len; in PHP_FUNCTION() local
3312 newstr = php_unicode_convert_case(case_mode, str, (size_t) str_len, &ret_len, from_encoding); in PHP_FUNCTION()
3316 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
3331 size_t ret_len; in PHP_FUNCTION() local
3337 …newstr = php_unicode_convert_case(PHP_UNICODE_CASE_UPPER, str, (size_t) str_len, &ret_len, from_en… in PHP_FUNCTION()
3341 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
3358 size_t ret_len; in PHP_FUNCTION() local
3364 …newstr = php_unicode_convert_case(PHP_UNICODE_CASE_LOWER, str, (size_t) str_len, &ret_len, from_en… in PHP_FUNCTION()
3368 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
/PHP-7.1/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.1/Zend/
H A Dzend_virtual_cwd.c236 size_t ret_len, targetw_len, offset = 0; in php_sys_readlink() local
286 ret = php_win32_ioutil_conv_w_to_any(targetw + offset, targetw_len - offset, &ret_len); in php_sys_readlink()
287 if (!ret || ret_len >= MAXPATHLEN) { in php_sys_readlink()
293 memcpy(target, ret, ret_len + 1); in php_sys_readlink()
299 return ret_len; in php_sys_readlink()

Completed in 39 milliseconds