Searched defs:from_encoding (Results 1 - 5 of 5) 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.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.c2419 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2424 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) {
2431 n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2448 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2453 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) {
2457 n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2601 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
2610 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) {
2619 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
2621 php_error_docref(NULL, E_WARNING, "Unknown encoding \"%s\"", from_encoding);
2664 const char *from_encoding = MBSTRG(current_internal_encoding)->name; local
3003 const mbfl_encoding *from_encoding, *to_encoding; local
3157 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3185 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3212 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name; local
3555 const mbfl_encoding *from_encoding, *to_encoding; local
4679 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...]

Completed in 8 milliseconds