Lines Matching refs:out_len

1614 …size_t out_len = MBSTRG(current_internal_encoding)->to_wchar(&in, &in_len, wchar_buf, 128, &MBSTRG…  in PHP_FUNCTION()  local
1615 ZEND_ASSERT(out_len <= 128); in PHP_FUNCTION()
1616 encoding->from_wchar(wchar_buf, out_len, &buf, !in_len && last_feed); in PHP_FUNCTION()
1696 size_t out_len = enc->to_wchar(&p, &in_len, wchar_buf, 128, &state); in PHP_FUNCTION() local
1697 ZEND_ASSERT(out_len <= 128); in PHP_FUNCTION()
1702 if (out_len >= split_len - char_count) { in PHP_FUNCTION()
1712 enc->from_wchar(wchar_buf, out_len, &buf, !in_len); in PHP_FUNCTION()
1713 char_count += out_len; in PHP_FUNCTION()
1718 while (i < out_len) { in PHP_FUNCTION()
1722 if (out_len - i >= split_len) { in PHP_FUNCTION()
1729 enc->from_wchar(wchar_buf + i, out_len - i, &buf, !in_len); in PHP_FUNCTION()
1730 char_count = out_len - i; in PHP_FUNCTION()
2095 size_t out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_get_substr_slow() local
2096 ZEND_ASSERT(out_len <= 128); in mb_get_substr_slow()
2098 if (from >= out_len) { in mb_get_substr_slow()
2099 from -= out_len; in mb_get_substr_slow()
2101 size_t needed_codepoints = MIN(out_len - from, len); in mb_get_substr_slow()
2102 enc->from_wchar(wchar_buf + from, needed_codepoints, &buf, !in_len || out_len >= len); in mb_get_substr_slow()
2488 size_t out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_get_strwidth() local
2489 ZEND_ASSERT(out_len <= 128); in mb_get_strwidth()
2491 while (out_len) { in mb_get_strwidth()
2495 width += character_width(wchar_buf[--out_len]); in mb_get_strwidth()
2529 size_t out_len = 0; in mb_trim_string() local
2534 out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_trim_string()
2535 ZEND_ASSERT(out_len <= 128); in mb_trim_string()
2537 if (out_len <= to_skip) { in mb_trim_string()
2538 to_skip -= out_len; in mb_trim_string()
2540 for (size_t i = to_skip; i < out_len; i++) { in mb_trim_string()
2600 out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_trim_string()
2601 ZEND_ASSERT(out_len <= 128); in mb_trim_string()
2604 if (out_len <= from) { in mb_trim_string()
2605 from -= out_len; in mb_trim_string()
2607 for (size_t i = from; i < out_len; i++) { in mb_trim_string()
2616 enc->from_wchar(wchar_buf + from, out_len - from, &buf, false); in mb_trim_string()
3024 size_t out_len = 0; in trim_each_wchar() local
3031 out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in trim_each_wchar()
3032 ZEND_ASSERT(out_len <= 128); in trim_each_wchar()
3033 total_len += out_len; in trim_each_wchar()
3035 for (size_t i = 0; i < out_len; i++) { in trim_each_wchar()
3305 …size_t out_len = enc->to_wchar((unsigned char**)&array[i].in, &array[i].in_len, wchar_buf, 128, &a… in count_demerits() local
3306 ZEND_ASSERT(out_len <= 128); in count_demerits()
3309 while (out_len) { in count_demerits()
3310 uint32_t w = wchar_buf[--out_len]; in count_demerits()
3530 …size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf + buf_offset, 64 - buf_offset, &state); in jp_kana_convert() local
3531 out_len += buf_offset; in jp_kana_convert()
3532 ZEND_ASSERT(out_len <= 64); in jp_kana_convert()
3534 if (!out_len) { in jp_kana_convert()
3538 for (size_t i = 0; i < out_len-1; i++) { in jp_kana_convert()
3547 if (i == out_len-1) { in jp_kana_convert()
3559 *converted++ = mb_convert_kana_codepoint(wchar_buf[out_len-1], 0, NULL, &second, mode); in jp_kana_convert()
3565 wchar_buf[0] = wchar_buf[out_len-1]; in jp_kana_convert()
3951 size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf, 32, &state); in html_numeric_entity_encode() local
3952 ZEND_ASSERT(out_len <= 32); in html_numeric_entity_encode()
3957 for (size_t i = 0; i < out_len; i++) { in html_numeric_entity_encode()
4087 …size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf + wchar_buf_offset, 127 - wchar_buf_of… in html_numeric_entity_decode() local
4088 out_len += wchar_buf_offset; in html_numeric_entity_decode()
4089 ZEND_ASSERT(out_len <= 127); in html_numeric_entity_decode()
4090 wchar_buf[out_len] = '&'; /* Sentinel, to avoid bounds checks */ in html_numeric_entity_decode()
4100 if (p == wchar_buf + out_len) { in html_numeric_entity_decode()
4102 encoding->from_wchar(wchar_buf, out_len, &buf, !in_len); in html_numeric_entity_decode()
4125 if ((p2 == wchar_buf + out_len) && in_len && (p2 - p) <= HEX_ENTITY_MAXLEN) { in html_numeric_entity_decode()
4163 if ((p2 == wchar_buf + out_len) && in_len && (p2 - p) <= DEC_ENTITY_MAXLEN) { in html_numeric_entity_decode()
4197 } else if ((p2 == wchar_buf + out_len) && in_len) { in html_numeric_entity_decode()
4219 if (p < wchar_buf + out_len) in html_numeric_entity_decode()
4852 size_t out_len = encoding->to_wchar(&in, &length, wchar_buf, 8, &state); in php_mb_check_encoding() local
4853 ZEND_ASSERT(out_len <= 8); in php_mb_check_encoding()
4854 for (unsigned int i = 0; i < out_len; i++) { in php_mb_check_encoding()
4861 out_len = encoding->to_wchar(&in, &length, wchar_buf, 128, &state); in php_mb_check_encoding()
4862 ZEND_ASSERT(out_len <= 128); in php_mb_check_encoding()
4863 for (unsigned int i = 0; i < out_len; i++) { in php_mb_check_encoding()
5647 …size_t out_len = enc->to_wchar((unsigned char**)&str, &str_len, wchar_buf, MBSTRING_MIN_WCHAR_BUFS… in php_mb_ord() local
5648 ZEND_ASSERT(out_len <= MBSTRING_MIN_WCHAR_BUFSIZE); in php_mb_ord()
5650 if (!out_len || wchar_buf[0] == MBFL_BAD_INPUT) { in php_mb_ord()
6161 …size_t out_len = incode->to_wchar(&in, &in_len, wchar_buf, MBSTRING_HEADER_ENC_WCHAR_BUFSIZE, &sta… in mb_mime_header_encode() local
6163 e = wchar_buf + out_len; in mb_mime_header_encode()
6196 …size_t out_len = incode->to_wchar(&in, &in_len, wchar_buf + offset, MBSTRING_HEADER_ENC_WCHAR_BUFS… in mb_mime_header_encode() local
6197 ZEND_ASSERT(out_len <= MBSTRING_HEADER_ENC_WCHAR_BUFSIZE - offset); in mb_mime_header_encode()
6199 e = wchar_buf + offset + out_len; in mb_mime_header_encode()
6313 …size_t out_len = incode->to_wchar(&in, &in_len, wchar_buf + offset, MBSTRING_HEADER_ENC_WCHAR_BUFS… in mb_mime_header_encode() local
6314 ZEND_ASSERT(out_len <= MBSTRING_HEADER_ENC_WCHAR_BUFSIZE - offset); in mb_mime_header_encode()
6316 e = wchar_buf + offset + out_len; in mb_mime_header_encode()
6602 size_t out_len = incode->to_wchar(&bufp, &in_len, wchar_buf, 128, state); in mime_header_decode_encoded_word() local
6603 ZEND_ASSERT(out_len <= 128); in mime_header_decode_encoded_word()
6604 outcode->from_wchar(wchar_buf, out_len, outbuf, false); in mime_header_decode_encoded_word()
6660 size_t out_len = mbfl_encoding_ascii.to_wchar(&p, &in_len, wchar_buf, 128, &state); in mb_mime_header_decode() local
6661 ZEND_ASSERT(out_len <= 128); in mb_mime_header_decode()
6662 outcode->from_wchar(wchar_buf, out_len, &buf, false); in mb_mime_header_decode()