39static size_t mb_8bit_to_wchar(
unsigned char **in,
size_t *in_len, uint32_t *
buf,
size_t bufsize,
unsigned int *
state);
42static const char *mbfl_encoding_8bit_aliases[] = {
"binary",
NULL};
48 mbfl_encoding_8bit_aliases,
64 mbfl_filt_conv_8bit_wchar,
74 mbfl_filt_conv_wchar_8bit,
79#define CK(statement) do { if ((statement) < 0) return (-1); } while (0)
88 if (c >= 0 && c < 0x100) {
97static size_t mb_8bit_to_wchar(
unsigned char **in,
size_t *in_len, uint32_t *
buf,
size_t bufsize,
unsigned int *
state)
99 unsigned char *
p = *in, *e =
p + *in_len;
100 uint32_t *
out =
buf, *limit =
buf + bufsize;
102 while (
p < e &&
out < limit) {
103 unsigned char c = *
p++;
114 unsigned char *
out, *limit;
121 out = mb_convert_buf_add(
out, w);
zend_ffi_ctype_name_buf buf
const struct mbfl_convert_vtbl vtbl_wchar_8bit
const struct mbfl_convert_vtbl vtbl_8bit_wchar
const mbfl_encoding mbfl_encoding_8bit
#define MBFL_ENCTYPE_SBCS
int mbfl_filt_conv_common_flush(mbfl_convert_filter *filter)
int mbfl_filt_conv_illegal_output(int c, mbfl_convert_filter *filter)
void mbfl_filt_conv_common_ctor(mbfl_convert_filter *filter)
struct _mbfl_convert_filter mbfl_convert_filter
#define MB_CONVERT_BUF_STORE(buf, _out, _limit)
#define MB_CONVERT_BUF_ENSURE(buf, out, limit, needed)
#define MB_CONVERT_ERROR(buf, out, limit, bad_cp, conv_fn)
#define MB_CONVERT_BUF_LOAD(buf, _out, _limit)
unsigned const char * end
output_function_t output_function