Searched refs:filter (Results 1 - 25 of 160) sorted by relevance

1234567

/PHP_5_4/ext/mbstring/libmbfl/filters/
H A Dmbfilter_base64.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
84 int mbfl_filt_conv_base64enc(int c, mbfl_convert_filter *filter) argument
88 n = (filter->status & 0xff);
90 filter->status++;
91 filter->cache = (c & 0xff) << 16;
93 filter->status++;
94 filter->cache |= (c & 0xff) << 8;
96 filter
116 mbfl_filt_conv_base64enc_flush(mbfl_convert_filter *filter) argument
149 mbfl_filt_conv_base64dec(int c, mbfl_convert_filter *filter) argument
196 mbfl_filt_conv_base64dec_flush(mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_byte2.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
91 int mbfl_filt_conv_byte2be_wchar(int c, mbfl_convert_filter *filter) argument
95 if (filter->status == 0) {
96 filter->status = 1;
98 filter->cache = n;
100 filter->status = 0;
101 n = (c & 0xff) | filter->cache;
102 CK((*filter
107 mbfl_filt_conv_wchar_byte2be(int c, mbfl_convert_filter *filter) argument
114 mbfl_filt_conv_byte2le_wchar(int c, mbfl_convert_filter *filter) argument
130 mbfl_filt_conv_wchar_byte2le(int c, mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_byte4.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
93 int mbfl_filt_conv_byte4be_wchar(int c, mbfl_convert_filter *filter) argument
97 if (filter->status == 0) {
98 filter->status = 1;
100 filter->cache = n;
101 } else if (filter->status == 1) {
102 filter->status = 2;
104 filter
117 mbfl_filt_conv_wchar_byte4be(int c, mbfl_convert_filter *filter) argument
126 mbfl_filt_conv_byte4le_wchar(int c, mbfl_convert_filter *filter) argument
150 mbfl_filt_conv_wchar_byte4le(int c, mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_cp5022x.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
43 static int mbfl_filt_ident_jis_ms(int c, mbfl_identify_filter *filter);
44 static int mbfl_filt_ident_cp50220(int c, mbfl_identify_filter *filter);
45 static int mbfl_filt_ident_cp50221(int c, mbfl_identify_filter *filter);
46 static int mbfl_filt_ident_cp50222(int c, mbfl_identify_filter *filter);
229 mbfl_filt_conv_jis_ms_wchar(int c, mbfl_convert_filter *filter) argument
234 switch (filter->status & 0xf) {
242 filter
409 mbfl_filt_conv_wchar_jis_ms(int c, mbfl_convert_filter *filter) argument
625 mbfl_filt_conv_wchar_cp50220raw(int c, mbfl_convert_filter *filter) argument
648 mbfl_filt_conv_wchar_cp50221(int c, mbfl_convert_filter *filter) argument
794 mbfl_filt_conv_wchar_cp50222(int c, mbfl_convert_filter *filter) argument
947 mbfl_filt_conv_wchar_cp50222_flush(mbfl_convert_filter *filter) argument
967 mbfl_filt_ident_jis_ms(int c, mbfl_identify_filter *filter) argument
1065 mbfl_filt_ident_cp50220(int c, mbfl_identify_filter *filter) argument
1141 mbfl_filt_ident_cp50221(int c, mbfl_identify_filter *filter) argument
1219 mbfl_filt_ident_cp50222(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_euc_jp.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
40 int mbfl_filt_ident_eucjp(int c, mbfl_identify_filter *filter);
103 mbfl_filt_conv_eucjp_wchar(int c, mbfl_convert_filter *filter) argument
107 switch (filter->status) {
110 CK((*filter->output_function)(c, filter->data));
112 filter->status = 1;
113 filter
213 mbfl_filt_conv_wchar_eucjp(int c, mbfl_convert_filter *filter) argument
278 mbfl_filt_ident_eucjp(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_euc_tw.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
39 static int mbfl_filt_ident_euctw(int c, mbfl_identify_filter *filter);
103 mbfl_filt_conv_euctw_wchar(int c, mbfl_convert_filter *filter) argument
107 switch (filter->status) {
110 CK((*filter->output_function)(c, filter->data));
112 filter->status = 1;
113 filter
226 mbfl_filt_conv_wchar_euctw(int c, mbfl_convert_filter *filter) argument
278 mbfl_filt_ident_euctw(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_htmlent.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
99 int mbfl_filt_conv_html_enc(int c, mbfl_convert_filter *filter) argument
108 CK((*filter->output_function)(c, filter->data));
110 CK((*filter->output_function)('&', filter->data));
116 CK((*filter->output_function)((int)*p, filter
145 mbfl_filt_conv_html_enc_flush(mbfl_convert_filter *filter) argument
163 mbfl_filt_conv_html_dec_ctor(mbfl_convert_filter *filter) argument
169 mbfl_filt_conv_html_dec_dtor(mbfl_convert_filter *filter) argument
179 mbfl_filt_conv_html_dec(int c, mbfl_convert_filter *filter) argument
288 mbfl_filt_conv_html_dec_flush(mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_htmlent.h2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
39 void mbfl_filt_conv_html_dec_ctor(mbfl_convert_filter *filter);
40 void mbfl_filt_conv_html_dec_dtor(mbfl_convert_filter *filter);
41 int mbfl_filt_conv_html_enc(int c, mbfl_convert_filter *filter);
42 int mbfl_filt_conv_html_enc_flush(mbfl_convert_filter *filter);
43 int mbfl_filt_conv_html_dec(int c, mbfl_convert_filter *filter);
44 int mbfl_filt_conv_html_dec_flush(mbfl_convert_filter *filter);
45 void mbfl_filt_conv_html_dec_ctor(mbfl_convert_filter *filter);
[all...]
H A Dmbfilter_hz.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
39 static int mbfl_filt_ident_hz(int c, mbfl_identify_filter *filter);
81 mbfl_filt_conv_hz_wchar(int c, mbfl_convert_filter *filter) argument
85 switch (filter->status & 0xf) {
90 filter->status += 2;
91 } else if (filter->status == 0x10 && c > 0x20 && c < 0x7f) { /* DBCS first char */
92 filter->cache = c;
93 filter
154 mbfl_filt_conv_wchar_hz(int c, mbfl_convert_filter *filter) argument
221 mbfl_filt_conv_any_hz_flush(mbfl_convert_filter *filter) argument
232 mbfl_filt_ident_hz(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_iso2022_jp_ms.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
41 int mbfl_filt_ident_2022jpms(int c, mbfl_identify_filter *filter);
92 mbfl_filt_conv_2022jpms_wchar(int c, mbfl_convert_filter *filter) argument
97 switch (filter->status & 0xf) {
105 filter->status += 2;
106 } else if (filter->status == 0x20 && c > 0x20 && c < 0x60) { /* kana */
107 CK((*filter->output_function)(0xff40 + c, filter
293 mbfl_filt_conv_wchar_2022jpms(int c, mbfl_convert_filter *filter) argument
418 mbfl_filt_conv_any_2022jpms_flush(mbfl_convert_filter *filter) argument
436 mbfl_filt_ident_2022jpms(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_iso2022_kr.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
38 static int mbfl_filt_ident_2022kr(int c, mbfl_identify_filter *filter);
80 mbfl_filt_conv_2022kr_wchar(int c, mbfl_convert_filter *filter) argument
85 switch (filter->status & 0xf) {
90 filter->status += 2;
92 filter->status &= ~0xff;
94 filter->status |= 0x10;
95 } else if ((filter
196 mbfl_filt_conv_wchar_2022kr(int c, mbfl_convert_filter *filter) argument
273 mbfl_filt_conv_any_2022kr_flush(mbfl_convert_filter *filter) argument
289 mbfl_filt_ident_2022kr(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_iso2022jp_2004.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
41 extern int mbfl_filt_conv_any_jis_flush(mbfl_convert_filter *filter);
42 static int mbfl_filt_ident_2022jp_2004(int c, mbfl_identify_filter *filter);
78 static int mbfl_filt_ident_2022jp_2004(int c, mbfl_identify_filter *filter) argument
81 switch (filter->status & 0xf) {
88 filter->status += 2;
89 } else if (filter->status == 0x80 && c > 0x20 && c < 0x7f) { /* kanji first char */
90 filter
[all...]
H A Dmbfilter_jis.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
40 static int mbfl_filt_ident_jis(int c, mbfl_identify_filter *filter);
41 static int mbfl_filt_ident_2022jp(int c, mbfl_identify_filter *filter);
117 mbfl_filt_conv_jis_wchar(int c, mbfl_convert_filter *filter) argument
122 switch (filter->status & 0xf) {
130 filter->status += 2;
132 filter->status = 0x20;
134 filter
288 mbfl_filt_conv_wchar_jis(int c, mbfl_convert_filter *filter) argument
393 mbfl_filt_conv_wchar_2022jp(int c, mbfl_convert_filter *filter) argument
472 mbfl_filt_conv_any_jis_flush(mbfl_convert_filter *filter) argument
489 mbfl_filt_ident_jis(int c, mbfl_identify_filter *filter) argument
587 mbfl_filt_ident_2022jp(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_qprint.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
72 int mbfl_filt_conv_qprintenc(int c, mbfl_convert_filter *filter) argument
76 switch (filter->status & 0xff) {
78 filter->cache = c;
79 filter->status++;
82 s = filter->cache;
83 filter->cache = c;
84 n = (filter
144 mbfl_filt_conv_qprintenc_flush(mbfl_convert_filter *filter) argument
156 mbfl_filt_conv_qprintdec(int c, mbfl_convert_filter *filter) argument
224 mbfl_filt_conv_qprintdec_flush(mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_ucs2.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
125 int mbfl_filt_conv_ucs2_wchar(int c, mbfl_convert_filter *filter) argument
129 endian = filter->status & 0xff00;
130 switch (filter->status & 0xff) {
137 filter->cache = n;
138 filter->status++;
146 n |= filter->cache;
149 filter
167 mbfl_filt_conv_ucs2be_wchar(int c, mbfl_convert_filter *filter) argument
186 mbfl_filt_conv_wchar_ucs2be(int c, mbfl_convert_filter *filter) argument
203 mbfl_filt_conv_ucs2le_wchar(int c, mbfl_convert_filter *filter) argument
223 mbfl_filt_conv_wchar_ucs2le(int c, mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_utf16.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
125 int mbfl_filt_conv_utf16_wchar(int c, mbfl_convert_filter *filter) argument
129 endian = filter->status & 0xff00;
130 switch (filter->status & 0x0f) {
137 filter->cache |= n;
138 filter->status++;
146 n |= filter->cache & 0xffff;
147 filter
188 mbfl_filt_conv_utf16be_wchar(int c, mbfl_convert_filter *filter) argument
227 mbfl_filt_conv_wchar_utf16be(int c, mbfl_convert_filter *filter) argument
253 mbfl_filt_conv_utf16le_wchar(int c, mbfl_convert_filter *filter) argument
292 mbfl_filt_conv_wchar_utf16le(int c, mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_utf32.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
125 int mbfl_filt_conv_utf32_wchar(int c, mbfl_convert_filter *filter) argument
129 endian = filter->status & 0xff00;
130 switch (filter->status & 0xff) {
137 filter->cache = n;
138 filter->status++;
146 filter->cache |= n;
147 filter
190 mbfl_filt_conv_utf32be_wchar(int c, mbfl_convert_filter *filter) argument
222 mbfl_filt_conv_wchar_utf32be(int c, mbfl_convert_filter *filter) argument
241 mbfl_filt_conv_utf32le_wchar(int c, mbfl_convert_filter *filter) argument
273 mbfl_filt_conv_wchar_utf32le(int c, mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_utf7.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
37 static int mbfl_filt_ident_utf7(int c, mbfl_identify_filter *filter);
94 int mbfl_filt_conv_utf7_wchar(int c, mbfl_convert_filter *filter) argument
99 if (filter->status != 0) { /* Modified Base64 */
113 if (filter->status == 1) { /* "+-" -> "+" */
114 CK((*filter->output_function)(0x2b, filter->data));
117 CK((*filter
247 mbfl_filt_conv_wchar_utf7(int c, mbfl_convert_filter *filter) argument
376 mbfl_filt_conv_wchar_utf7_flush(mbfl_convert_filter *filter) argument
416 mbfl_filt_ident_utf7(int c, mbfl_identify_filter *filter) argument
[all...]
H A Dmbfilter_utf7imap.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
67 int mbfl_filt_conv_utf7imap_wchar(int c, mbfl_convert_filter *filter) argument
72 if (filter->status != 0) { /* Modified Base64 */
86 if (filter->status == 1) { /* "&-" -> "&" */
87 CK((*filter->output_function)(0x26, filter->data));
90 CK((*filter->output_function)(c, filter
234 mbfl_filt_conv_wchar_utf7imap(int c, mbfl_convert_filter *filter) argument
337 mbfl_filt_conv_wchar_utf7imap_flush(mbfl_convert_filter *filter) argument
[all...]
H A Dmbfilter_utf7imap.h2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
39 int mbfl_filt_conv_utf7imap_wchar(int c, mbfl_convert_filter *filter);
40 int mbfl_filt_conv_wchar_utf7imap(int c, mbfl_convert_filter *filter);
41 int mbfl_filt_conv_wchar_utf7imap_flush(mbfl_convert_filter *filter);
H A Dmbfilter_uuencode.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
65 int mbfl_filt_conv_uudec(int c, mbfl_convert_filter * filter) argument
69 switch(filter->status) {
72 if (filter->cache == 0 && c == 'b')
74 filter->status = uudec_state_inbegin;
75 filter->cache = 1; /* move to 'e' */
78 filter->cache = 0;
80 filter
[all...]
H A Dmbfilter_utf8.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
37 int mbfl_filt_ident_utf8(int c, mbfl_identify_filter *filter);
96 int mbfl_filt_put_invalid_char(int c, mbfl_convert_filter *filter) argument
101 filter->status = 0;
102 filter->cache = 0;
103 CK((*filter->output_function)(w, filter->data));
110 int mbfl_filt_conv_utf8_wchar(int c, mbfl_convert_filter *filter) argument
192 mbfl_filt_conv_utf8_wchar_flush(mbfl_convert_filter *filter) argument
215 mbfl_filt_conv_wchar_utf8(int c, mbfl_convert_filter *filter) argument
242 mbfl_filt_ident_utf8(int c, mbfl_identify_filter *filter) argument
[all...]
/PHP_5_4/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_convert.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
283 mbfl_convert_filter *filter,
292 if ((filter->from = mbfl_no2encoding(from)) == NULL) {
296 if ((filter->to = mbfl_no2encoding(to)) == NULL) {
301 filter->output_function = output_function;
303 filter->output_function = mbfl_filter_output_null;
306 filter->flush_function = flush_function;
307 filter
282 mbfl_convert_filter_common_init( mbfl_convert_filter *filter, enum mbfl_no_encoding from, enum mbfl_no_encoding to, const struct mbfl_convert_vtbl *vtbl, int (*output_function)(int, void* ), int (*flush_function)(void*), void* data) argument
331 mbfl_convert_filter * filter; local
362 mbfl_convert_filter * filter; local
384 mbfl_convert_filter_delete(mbfl_convert_filter *filter) argument
393 mbfl_convert_filter_feed(int c, mbfl_convert_filter *filter) argument
399 mbfl_convert_filter_flush(mbfl_convert_filter *filter) argument
405 mbfl_convert_filter_reset(mbfl_convert_filter *filter, enum mbfl_no_encoding from, enum mbfl_no_encoding to) argument
436 mbfl_convert_filter_devcat(mbfl_convert_filter *filter, mbfl_memory_device *src) argument
453 mbfl_convert_filter_strcat(mbfl_convert_filter *filter, const unsigned char *p) argument
468 mbfl_filt_conv_illegal_output(int c, mbfl_convert_filter *filter) argument
604 mbfl_filt_conv_common_ctor(mbfl_convert_filter *filter) argument
610 mbfl_filt_conv_common_flush(mbfl_convert_filter *filter) argument
621 mbfl_filt_conv_common_dtor(mbfl_convert_filter *filter) argument
[all...]
H A Dmbfl_filter_output.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
40 mbfl_convert_filter *filter = (mbfl_convert_filter*)data; local
41 return (*filter->filter_function)(c, filter);
46 mbfl_convert_filter *filter = (mbfl_convert_filter*)data; local
47 if (filter->filter_flush != NULL) {
48 return (*filter->filter_flush)(filter);
[all...]
H A Dmbfl_ident.c2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
177 * identify filter
196 mbfl_identify_filter *filter; local
199 filter = (mbfl_identify_filter *)mbfl_malloc(sizeof(mbfl_identify_filter));
200 if (filter == NULL) {
204 if (mbfl_identify_filter_init(filter, encoding)) {
205 mbfl_free(filter);
209 return filter;
214 mbfl_identify_filter *filter; local
231 mbfl_identify_filter_init(mbfl_identify_filter *filter, enum mbfl_no_encoding encoding) argument
237 mbfl_identify_filter_init2(mbfl_identify_filter *filter, const mbfl_encoding *encoding) argument
263 mbfl_identify_filter_delete(mbfl_identify_filter *filter) argument
273 mbfl_identify_filter_cleanup(mbfl_identify_filter *filter) argument
278 mbfl_filt_ident_common_ctor(mbfl_identify_filter *filter) argument
284 mbfl_filt_ident_common_dtor(mbfl_identify_filter *filter) argument
289 mbfl_filt_ident_false(int c, mbfl_identify_filter *filter) argument
295 mbfl_filt_ident_false_ctor(mbfl_identify_filter *filter) argument
301 mbfl_filt_ident_true(int c, mbfl_identify_filter *filter) argument
[all...]

Completed in 25 milliseconds

1234567