Home
last modified time | relevance | path

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

/PHP-8.2/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.c39 zend_long ret_len; in PHP_FUNCTION() local
46 ret_len = grapheme_ascii_check((unsigned char *)string, string_len); in PHP_FUNCTION()
48 if ( ret_len >= 0 ) in PHP_FUNCTION()
67 ret_len = grapheme_split_string(ustring, ustring_len, NULL, 0 ); in PHP_FUNCTION()
73 if (ret_len >= 0) { in PHP_FUNCTION()
74 RETVAL_LONG(ret_len); in PHP_FUNCTION()
/PHP-8.2/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.c41 int ret_len, tmp_len; in php_win32_cp_to_w_int() local
51 ret_len = MultiByteToWideChar(cp, flags, in, tmp_len, NULL, 0); in php_win32_cp_to_w_int()
52 if (ret_len == 0) { in php_win32_cp_to_w_int()
57 ret = malloc(ret_len * sizeof(wchar_t)); 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()
70 assert(ret ? tmp_len == ret_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()
73 ret[ret_len-1] = L'\0'; in php_win32_cp_to_w_int()
76 *out_len = ret_len - 1; in php_win32_cp_to_w_int()
661 size_t ret_len, tmpw_len; in PHP_FUNCTION() local
[all …]
/PHP-8.2/ext/mbstring/
H A Dphp_unicode.c365 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 Dphp_unicode.h81 int case_mode, const char *srcstr, size_t srclen, size_t *ret_len,
H A Dmbstring.c2769 int case_mode, const char *str, size_t str_len, size_t *ret_len, in mbstring_convert_case() argument
2772 case_mode, str, str_len, ret_len, enc, in mbstring_convert_case()
2781 size_t str_len, ret_len; in PHP_FUNCTION() local
2801 char *newstr = mbstring_convert_case(case_mode, str, str_len, &ret_len, enc); in PHP_FUNCTION()
2806 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
2816 size_t str_len, ret_len; in PHP_FUNCTION() local
2829 char *newstr = mbstring_convert_case(PHP_UNICODE_CASE_UPPER, str, str_len, &ret_len, enc); in PHP_FUNCTION()
2834 RETVAL_STRINGL(newstr, ret_len); in PHP_FUNCTION()
2846 size_t ret_len; in PHP_FUNCTION() local
2860 newstr = mbstring_convert_case(PHP_UNICODE_CASE_LOWER, str, str_len, &ret_len, enc); in PHP_FUNCTION()
[all …]
/PHP-8.2/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 36 milliseconds