Home
last modified time | relevance | path

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

/PHP-8.1/ext/intl/grapheme/
H A Dgrapheme_util.c219 int ret_len = len; in grapheme_ascii_check() local
225 return ret_len; in grapheme_ascii_check()
235 int ret_len, pos; in grapheme_split_string() local
248 for ( ret_len = 0; pos != UBRK_DONE; ) { in grapheme_split_string()
254 if ( NULL != boundary_array && ret_len < boundary_array_len ) { in grapheme_split_string()
255 boundary_array[ret_len] = pos; in grapheme_split_string()
258 ret_len++; in grapheme_split_string()
264 return ret_len; in grapheme_split_string()
271 int ret_len = 0; in grapheme_count_graphemes() local
282 ret_len++; in grapheme_count_graphemes()
[all …]
H A Dgrapheme_string.c57 zend_long ret_len; in PHP_FUNCTION() local
64 ret_len = grapheme_ascii_check((unsigned char *)string, string_len); in PHP_FUNCTION()
66 if ( ret_len >= 0 ) in PHP_FUNCTION()
85 ret_len = grapheme_split_string(ustring, ustring_len, NULL, 0 ); in PHP_FUNCTION()
91 if (ret_len >= 0) { in PHP_FUNCTION()
92 RETVAL_LONG(ret_len); in PHP_FUNCTION()
/PHP-8.1/win32/
H A Dioutil.c590 ret = php_win32_ioutil_conv_w_to_any(startw, ret_len, &ret_len); in php_win32_ioutil_dirname()
597 return ret_len; in php_win32_ioutil_dirname()
604 size_t ret_len = len; in php_win32_ioutil_normalize_path_w() local
628 if (ret_len != len) { in php_win32_ioutil_normalize_path_w()
629 if (ret_len > len) { in php_win32_ioutil_normalize_path_w()
641 *new_len = ret_len; in php_win32_ioutil_normalize_path_w()
734 DWORD ret_len, ret_real_len; in php_win32_ioutil_realpath_h() local
737 if (0 == ret_len) { in php_win32_ioutil_realpath_h()
756 ret_real_len = ret_len; in php_win32_ioutil_realpath_h()
778 size_t ret_len; in php_win32_ioutil_realpath_w_ex0() local
[all …]
H A Dcodepage.c37 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
47 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
48 if (ret_len == 0) { in php_win32_cp_to_w_int()
53 ret = malloc(ret_len * sizeof(wchar_t)); 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()
66 assert(ret ? tmp_len == ret_len : 1); in php_win32_cp_to_w_int()
67 assert(ret && !in_len ? wcslen(ret) == ret_len - 1 : 1); in php_win32_cp_to_w_int()
69 ret[ret_len-1] = L'\0'; in php_win32_cp_to_w_int()
72 *out_len = ret_len - 1; in php_win32_cp_to_w_int()
627 size_t ret_len, tmpw_len; in PHP_FUNCTION() local
[all …]
/PHP-8.1/ext/mbstring/
H A Dphp_unicode.c361 int case_mode, const char *srcstr, size_t srclen, size_t *ret_len, in php_unicode_convert_case() argument
421 *ret_len = result.len; in php_unicode_convert_case()
H A Dmbstring.c2608 case_mode, str, str_len, ret_len, enc, in mbstring_convert_case()
2617 size_t str_len, ret_len; in PHP_FUNCTION() local
2642 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
2652 size_t str_len, ret_len; in PHP_FUNCTION() local
2670 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
2682 size_t ret_len; in PHP_FUNCTION() local
2701 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
4164 size_t ret_len; in php_mb_chr() local
4175 ret = zend_string_init(ret_str, ret_len, 0); in php_mb_chr()
4223 size_t ret_len; in PHP_FUNCTION() local
[all …]
H A Dphp_unicode.h81 int case_mode, const char *srcstr, size_t srclen, size_t *ret_len,
/PHP-8.1/ext/intl/converter/
H A Dconverter.c625 int32_t temp_len, ret_len; in php_converter_do_convert() local
654 ret_len = ucnv_fromUChars(dest_cnv, NULL, 0, temp, temp_len, &error); in php_converter_do_convert()
661 ret = zend_string_alloc(ret_len, 0); in php_converter_do_convert()
665 ZSTR_LEN(ret) = ucnv_fromUChars(dest_cnv, ZSTR_VAL(ret), ret_len+1, temp, temp_len, &error); in php_converter_do_convert()

Completed in 48 milliseconds