Lines Matching refs:len

916 	string.len = arg_length;  in php_mb_zend_encoding_detector()
933 string.len = from_length; in php_mb_zend_encoding_converter()
936 …nverter_new2((const mbfl_encoding *)encoding_from, (const mbfl_encoding *)encoding_to, string.len); in php_mb_zend_encoding_converter()
957 *to_length = result.len; in php_mb_zend_encoding_converter()
1085 static char *php_mb_rfc1867_substring_conf(const zend_encoding *encoding, char *start, int len, cha… in php_mb_rfc1867_substring_conf() argument
1087 char *result = emalloc(len + 2); in php_mb_rfc1867_substring_conf()
1091 for (i = 0; i < len && start[i] != quote; ++i) { in php_mb_rfc1867_substring_conf()
1097 while (j-- > 0 && i < len) { in php_mb_rfc1867_substring_conf()
2126 int last_feed, len; in PHP_FUNCTION() local
2168 len = spprintf( &p, 0, "Content-Type: %s; charset=%s", mimetype, charset ); in PHP_FUNCTION()
2169 if (sapi_add_header(p, len, 0) != FAILURE) { in PHP_FUNCTION()
2199 string.len = arg_string_len; in PHP_FUNCTION()
2207 RETVAL_STRINGL((char *)result.val, result.len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
2239 string.len = (uint32_t)string_len; in PHP_FUNCTION()
2290 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2291 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2305 if (needle.len == 0) { in PHP_FUNCTION()
2367 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2368 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2419 if (haystack.len <= 0) { in PHP_FUNCTION()
2422 if (needle.len <= 0) { in PHP_FUNCTION()
2466 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2467 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2469 if (needle.len == 0) { in PHP_FUNCTION()
2473 …n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, … in PHP_FUNCTION()
2505 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2506 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2508 …n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, … in PHP_FUNCTION()
2522 int n, len, mblen; in PHP_FUNCTION() local
2547 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2548 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2558 if (needle.len <= 0) { in PHP_FUNCTION()
2569 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2575 len = (mblen - n); in PHP_FUNCTION()
2576 ret = mbfl_substr(&haystack, &result, n, len); in PHP_FUNCTION()
2579 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2595 int n, len, mblen; in PHP_FUNCTION() local
2620 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2621 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2631 if (haystack.len <= 0) { in PHP_FUNCTION()
2634 if (needle.len <= 0) { in PHP_FUNCTION()
2644 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2650 len = (mblen - n); in PHP_FUNCTION()
2651 ret = mbfl_substr(&haystack, &result, n, len); in PHP_FUNCTION()
2654 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2671 size_t from_encoding_len, len, mblen, haystack_len, needle_len; in PHP_FUNCTION() local
2695 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2696 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2698 if (!needle.len) { in PHP_FUNCTION()
2709 …n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, 0, from_… in PHP_FUNCTION()
2721 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2727 len = (mblen - n); in PHP_FUNCTION()
2728 ret = mbfl_substr(&haystack, &result, n, len); in PHP_FUNCTION()
2731 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2745 int n, len, mblen; in PHP_FUNCTION() local
2769 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2770 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2778 …n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, 0, from_… in PHP_FUNCTION()
2790 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2796 len = (mblen - n); in PHP_FUNCTION()
2797 ret = mbfl_substr(&haystack, &result, n, len); in PHP_FUNCTION()
2800 RETVAL_STRINGL((char *)ret->val, ret->len); in PHP_FUNCTION()
2837 haystack.len = (uint32_t)haystack_len; in PHP_FUNCTION()
2838 needle.len = (uint32_t)needle_len; in PHP_FUNCTION()
2848 if (needle.len <= 0) { in PHP_FUNCTION()
2867 zend_long from, len; in PHP_FUNCTION() local
2873 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|l!s", &str, &str_len, &from, &len, &len_is_null, &e… in PHP_FUNCTION()
2890 string.len = str_len; in PHP_FUNCTION()
2893 len = str_len; in PHP_FUNCTION()
2898 if (from < 0 || len < 0) { in PHP_FUNCTION()
2915 if (len < 0) { in PHP_FUNCTION()
2916 len = (mblen - from) + len; in PHP_FUNCTION()
2917 if (len < 0) { in PHP_FUNCTION()
2918 len = 0; in PHP_FUNCTION()
2930 if (len > INT_MAX) { in PHP_FUNCTION()
2931 len = INT_MAX; in PHP_FUNCTION()
2934 ret = mbfl_substr(&string, &result, from, len); in PHP_FUNCTION()
2940 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
2950 zend_long from, len; in PHP_FUNCTION() local
2959 …ters(ZEND_NUM_ARGS(), "sl|l!s", (char **)&string.val, &string_len, &from, &len, &len_is_null, &enc… in PHP_FUNCTION()
2968 string.len = (uint32_t)string_len; in PHP_FUNCTION()
2979 len = string.len; in PHP_FUNCTION()
2986 from = string.len + from; in PHP_FUNCTION()
2995 if (len < 0) { in PHP_FUNCTION()
2996 len = (string.len - from) + len; in PHP_FUNCTION()
2997 if (len < 0) { in PHP_FUNCTION()
2998 len = 0; in PHP_FUNCTION()
3002 if ((unsigned int)from > string.len) { in PHP_FUNCTION()
3006 ret = mbfl_strcut(&string, &result, from, len); in PHP_FUNCTION()
3012 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
3040 string.len = (uint32_t)string_len; in PHP_FUNCTION()
3079 marker.len = 0; in PHP_FUNCTION()
3090 string.len = str_len; in PHP_FUNCTION()
3104 marker.len = trimmarker_len; in PHP_FUNCTION()
3113 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
3152 string.len = length; in php_mb_convert_encoding()
3182 convd = mbfl_buffer_converter_new2(from_encoding, to_encoding, string.len); in php_mb_convert_encoding()
3194 *output_len = ret->len; in php_mb_convert_encoding()
3415 string.len = str_len; in PHP_FUNCTION()
3502 string.len = (uint32_t)string_len; in PHP_FUNCTION()
3533 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
3561 string.len = (uint32_t)string_len; in PHP_FUNCTION()
3567 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
3599 string.len = (uint32_t)string_len; in PHP_FUNCTION()
3679 RETVAL_STRINGL((char *)ret->val, ret->len); /* the string is already strdup()'ed */ in PHP_FUNCTION()
3798 string.len = Z_STRLEN_P(hash_entry); in PHP_FUNCTION()
3807 string.len = Z_STRLEN_P(var); in PHP_FUNCTION()
3909 string.len = Z_STRLEN_P(hash_entry); in PHP_FUNCTION()
3914 ZVAL_STRINGL(hash_entry_ptr, (char *)ret->val, ret->len); in PHP_FUNCTION()
3922 string.len = Z_STRLEN_P(var); in PHP_FUNCTION()
3927 ZVAL_STRINGL(var, (char *)ret->val, ret->len); in PHP_FUNCTION()
3982 string.len = str_len; in php_mb_numericentity_exec()
4023 RETVAL_STRINGL((char *)ret->val, ret->len); in php_mb_numericentity_exec()
4062 #define MAIL_ASCIIZ_CHECK_MBSTRING(str, len) \ argument
4064 ee = pp + len; \
4396 orig_str.len = subject_len; in PHP_FUNCTION()
4415 orig_str.len = (unsigned int)message_len; in PHP_FUNCTION()
4742 string.len = var_len; in PHP_FUNCTION()
4749 …if (illegalchars == 0 && string.len == result.len && memcmp(string.val, result.val, string.len) ==… in PHP_FUNCTION()
4881 size_t len = 0; in php_mb_stripos() local
4882 …_convert_case(PHP_UNICODE_CASE_UPPER, (char *)old_haystack, old_haystack_len, &len, from_encoding); in php_mb_stripos()
4883 haystack.len = len; in php_mb_stripos()
4889 if (haystack.len <= 0) { in php_mb_stripos()
4893 …code_convert_case(PHP_UNICODE_CASE_UPPER, (char *)old_needle, old_needle_len, &len, from_encoding); in php_mb_stripos()
4894 needle.len = len; in php_mb_stripos()
4900 if (needle.len <= 0) { in php_mb_stripos()