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

/PHP_TRUNK/ext/mbstring/libmbfl/tests/
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);
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);
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c204 const mbfl_encoding *from_encoding = NULL; local
267 from_encoding = &mbfl_encoding_pass;
269 from_encoding = info->from_encodings[0];
272 from_encoding = NULL;
284 from_encoding = mbfl_encoding_detector_judge2(identd);
287 if (!from_encoding) {
291 from_encoding = &mbfl_encoding_pass;
296 if (from_encoding != &mbfl_encoding_pass) {
297 convd = mbfl_buffer_converter_new2(from_encoding, info->to_encoding, 0);
310 string.no_encoding = from_encoding
[all...]
H A Dmbstring.h151 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 TSRMLS_DC);
H A Dmbstring.c2414 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2419 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|ls", (char **)&haystack.val, (int *)&haystack.len, (char **)&needle.val, (int *)&needle.len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2426 n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding TSRMLS_CC);
2443 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2448 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|ls", (char **)&haystack.val, (int *)&haystack.len, (char **)&needle.val, (int *)&needle.len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2452 n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding TSRMLS_CC);
2588 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2597 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|bs", (char **)&haystack.val, &haystack.len, (char **)&needle.val, &needle.len, &part, &from_encoding, &from_encoding_len) == FAILURE) {
2606 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
2608 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown encoding \"%s\"", from_encoding);
2646 const char *from_encoding = MBSTRG(current_internal_encoding)->name; local
2975 const mbfl_encoding *from_encoding, *to_encoding; local
3136 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3161 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3185 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3519 const mbfl_encoding *from_encoding, *to_encoding; local
[all...]

Completed in 10 milliseconds