Lines Matching refs:out

474 static uint32_t* handle_utf16_cp(uint16_t cp, uint32_t *out, uint16_t *surrogate1)  in handle_utf16_cp()  argument
479 *out++ = ((*surrogate1 & 0x3FF) << 10) + (cp & 0x3FF) + 0x10000; in handle_utf16_cp()
482 *out++ = MBFL_BAD_INPUT; in handle_utf16_cp()
490 *out++ = MBFL_BAD_INPUT; in handle_utf16_cp()
492 *out++ = MBFL_BAD_INPUT; in handle_utf16_cp()
494 *out++ = cp; in handle_utf16_cp()
496 return out; in handle_utf16_cp()
499 static uint32_t* handle_base64_end(unsigned char n, uint32_t *out, bool *base64, bool abrupt, uint1… in handle_base64_end() argument
502 *out++ = MBFL_BAD_INPUT; in handle_base64_end()
507 return out; in handle_base64_end()
521 uint32_t *out = buf, *limit = buf + bufsize - 1; in mb_utf7imap_to_wchar() local
526 while (p < e && out < limit) { in mb_utf7imap_to_wchar()
529 if ((limit - out) < 4) { in mb_utf7imap_to_wchar()
535 out = handle_base64_end(n1, out, &base64, false, &surrogate1); in mb_utf7imap_to_wchar()
538 out = handle_base64_end(n1, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
543 out = handle_base64_end(n2, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
548 out = handle_base64_end(n3, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
551 out = handle_utf16_cp((n1 << 10) | (n2 << 4) | ((n3 & 0x3C) >> 2), out, &surrogate1); in mb_utf7imap_to_wchar()
556 *out++ = MBFL_BAD_INPUT; in mb_utf7imap_to_wchar()
562 out = handle_base64_end(n4, out, &base64, n3 & 0x3, &surrogate1); in mb_utf7imap_to_wchar()
565 out = handle_base64_end(n4, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
570 out = handle_base64_end(n5, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
575 out = handle_base64_end(n6, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
578 out = handle_utf16_cp((n3 << 14) | (n4 << 8) | (n5 << 2) | ((n6 & 0x30) >> 4), out, &surrogate1); in mb_utf7imap_to_wchar()
581 *out++ = MBFL_BAD_INPUT; in mb_utf7imap_to_wchar()
587 out = handle_base64_end(n7, out, &base64, n6 & 0xF, &surrogate1); in mb_utf7imap_to_wchar()
590 out = handle_base64_end(n7, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
595 out = handle_base64_end(n8, out, &base64, true, &surrogate1); in mb_utf7imap_to_wchar()
598 out = handle_utf16_cp((n6 << 12) | (n7 << 6) | n8, out, &surrogate1); in mb_utf7imap_to_wchar()
604 *out++ = '&'; in mb_utf7imap_to_wchar()
610 *out++ = c; in mb_utf7imap_to_wchar()
612 *out++ = MBFL_BAD_INPUT; in mb_utf7imap_to_wchar()
620 ZEND_ASSERT(out < limit); in mb_utf7imap_to_wchar()
621 *out++ = MBFL_BAD_INPUT; in mb_utf7imap_to_wchar()
627 return out - buf; in mb_utf7imap_to_wchar()
648 unsigned char *out, *limit; in mb_wchar_to_utf7imap() local
649 MB_CONVERT_BUF_LOAD(buf, out, limit); in mb_wchar_to_utf7imap()
650 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf7imap()
666 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_utf7imap()
668 out = mb_convert_buf_add(out, mbfl_base64_table[(cache << (6 - nbits)) & 0x3F]); in mb_wchar_to_utf7imap()
671 out = mb_convert_buf_add(out, '-'); in mb_wchar_to_utf7imap()
675 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_utf7imap); in mb_wchar_to_utf7imap()
676 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf7imap()
686 MB_CONVERT_BUF_ENSURE(buf, out, limit, 7); in mb_wchar_to_utf7imap()
691 MB_CONVERT_BUF_ENSURE(buf, out, limit, 4); in mb_wchar_to_utf7imap()
697 out = mb_convert_buf_add(out, mbfl_base64_table[(bits >> (nbits - 6)) & 0x3F]); in mb_wchar_to_utf7imap()
705 MB_CONVERT_BUF_ENSURE(buf, out, limit, len + 2); in mb_wchar_to_utf7imap()
706 out = mb_convert_buf_add2(out, '&', '-'); in mb_wchar_to_utf7imap()
708 out = mb_convert_buf_add(out, w); in mb_wchar_to_utf7imap()
711 MB_CONVERT_ERROR(buf, out, limit, w, mb_wchar_to_utf7imap); in mb_wchar_to_utf7imap()
712 MB_CONVERT_BUF_ENSURE(buf, out, limit, len); in mb_wchar_to_utf7imap()
715 out = mb_convert_buf_add(out, '&'); in mb_wchar_to_utf7imap()
724 out = mb_convert_buf_add(out, mbfl_base64_table[(cache << (6 - nbits)) & 0x3F]); in mb_wchar_to_utf7imap()
727 MB_CONVERT_BUF_ENSURE(buf, out, limit, 1); in mb_wchar_to_utf7imap()
728 out = mb_convert_buf_add(out, '-'); in mb_wchar_to_utf7imap()
734 MB_CONVERT_BUF_STORE(buf, out, limit); in mb_wchar_to_utf7imap()