Searched refs:from_encoding (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dsample.c13 enum mbfl_no_encoding from_encoding, to_encoding; local
21 from_encoding = mbfl_name2no_encoding("EUC-JP");
27 string.no_encoding = from_encoding;
32 convd = mbfl_buffer_converter_new(from_encoding, to_encoding, 0);
H A Dconv_encoding.c26 enum mbfl_no_encoding from_encoding, to_encoding; local
35 fprintf(stderr, "Usage: %s lang to_encoding from_encoding\n", argv[0]);
51 if ((from_encoding = mbfl_name2no_encoding(argv[3])) ==
57 convd = mbfl_buffer_converter_new(from_encoding, to_encoding, 0);
61 mbfl_string_init_set(&string, no_language, from_encoding);
H A Demoji.c30 enum mbfl_no_encoding from_encoding, to_encoding; local
58 from_encoding = mbfl_name2no_encoding("SJIS-win#DOCOMO");
61 from_encoding = mbfl_name2no_encoding("SJIS-win#KDDI");
64 from_encoding = mbfl_name2no_encoding("SJIS-win#SOFTBANK");
68 convd = mbfl_buffer_converter_new(from_encoding, to_encoding, 0);
71 mbfl_string_init_set(&string, no_language, from_encoding);
98 convd2 = mbfl_buffer_converter_new(to_encoding, from_encoding, 0);
107 mbfl_string_init_set(&result, no_language, from_encoding);
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c202 const mbfl_encoding *from_encoding = NULL; local
265 from_encoding = &mbfl_encoding_pass;
267 from_encoding = info->from_encodings[0];
270 from_encoding = NULL;
282 from_encoding = mbfl_encoding_detector_judge2(identd);
285 if (!from_encoding) {
289 from_encoding = &mbfl_encoding_pass;
294 if (from_encoding != &mbfl_encoding_pass) {
295 convd = mbfl_buffer_converter_new2(from_encoding, info->to_encoding, 0);
308 string.no_encoding = from_encoding
[all...]
H A Dmbstring.c2420 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2425 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ls", (char **)&haystack.val, (int *)&haystack.len, (char **)&needle.val, (int *)&needle.len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2432 n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2449 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2454 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ls", (char **)&haystack.val, (int *)&haystack.len, (char **)&needle.val, (int *)&needle.len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2458 n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2602 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2611 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|bs", (char **)&haystack.val, &haystack.len, (char **)&needle.val, &needle.len, &part, &from_encoding, &from_encoding_len) == FAILURE) {
2620 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
2622 php_error_docref(NULL, E_WARNING, "Unknown encoding \"%s\"", from_encoding);
2665 const char *from_encoding = MBSTRG(current_internal_encoding)->name; local
3004 const mbfl_encoding *from_encoding, *to_encoding; local
3158 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3186 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3213 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3556 const mbfl_encoding *from_encoding, *to_encoding; local
4684 php_mb_stripos(int mode, const char *old_haystack, unsigned int old_haystack_len, const char *old_needle, unsigned int old_needle_len, long offset, const char *from_encoding) argument
[all...]
H A Dmbstring.h154 MBSTRING_API int php_mb_stripos(int mode, const char *old_haystack, unsigned int old_haystack_len, const char *old_needle, unsigned int old_needle_len, long offset, const char *from_encoding);

Completed in 17 milliseconds