Lines Matching refs:from_encoding

2484 	const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
2487 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ls", (char **)&haystack.val, &haystack_len, (char **)&needle.val, &needle_len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2506 n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2523 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
2526 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|ls", (char **)&haystack.val, &haystack_len, (char **)&needle.val, &needle_len, &offset, &from_encoding, &from_encoding_len) == FAILURE) {
2541 n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, offset, from_encoding);
2707 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
2716 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) {
2736 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
2738 php_error_docref(NULL, E_WARNING, "Unknown encoding \"%s\"", from_encoding);
2742 n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, 0, from_encoding);
2781 const char *from_encoding = MBSTRG(current_internal_encoding)->name;
2790 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) {
2805 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
2807 php_error_docref(NULL, E_WARNING, "Unknown encoding \"%s\"", from_encoding);
2811 n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, 0, from_encoding);
3185 const mbfl_encoding *from_encoding, *to_encoding;
3211 from_encoding = MBSTRG(current_internal_encoding);
3212 string.no_encoding = from_encoding->no_encoding;
3223 from_encoding = *list;
3224 string.no_encoding = from_encoding->no_encoding;
3227 from_encoding = mbfl_identify_encoding2(&string, list, size, MBSTRG(strict_detection));
3228 if (from_encoding) {
3229 string.no_encoding = from_encoding->no_encoding;
3232 from_encoding = &mbfl_encoding_pass;
3233 to_encoding = from_encoding;
3234 string.no_encoding = from_encoding->no_encoding;
3245 convd = mbfl_buffer_converter_new2(from_encoding, to_encoding, string.len);
3424 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
3433 &case_mode, &from_encoding, &from_encoding_len) == FAILURE) {
3437 newstr = php_unicode_convert_case(case_mode, str, (size_t) str_len, &ret_len, from_encoding);
3452 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
3459 &from_encoding, &from_encoding_len) == FAILURE) {
3462 newstr = php_unicode_convert_case(PHP_UNICODE_CASE_UPPER, str, (size_t) str_len, &ret_len, from_encoding);
3479 const char *from_encoding = MBSTRG(current_internal_encoding)->mime_name;
3486 &from_encoding, &from_encoding_len) == FAILURE) {
3489 newstr = php_unicode_convert_case(PHP_UNICODE_CASE_LOWER, str, (size_t) str_len, &ret_len, from_encoding);
3848 const mbfl_encoding *from_encoding, *to_encoding;
3873 from_encoding = MBSTRG(current_internal_encoding);
3874 string.no_encoding = from_encoding->no_encoding;
3891 from_encoding = &mbfl_encoding_pass;
3893 from_encoding = *elist;
3896 from_encoding = NULL;
3966 from_encoding = mbfl_encoding_detector_judge2(identd);
3986 if (!from_encoding) {
3988 from_encoding = &mbfl_encoding_pass;
3996 if (from_encoding != &mbfl_encoding_pass) {
3997 convd = mbfl_buffer_converter_new2(from_encoding, to_encoding, 0);
4104 if (from_encoding) {
4105 RETURN_STRING(from_encoding->name);
5405 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)
5420 haystack.val = (unsigned char *)php_unicode_convert_case(PHP_UNICODE_CASE_UPPER, (char *)old_haystack, old_haystack_len, &len, from_encoding);
5431 needle.val = (unsigned char *)php_unicode_convert_case(PHP_UNICODE_CASE_UPPER, (char *)old_needle, old_needle_len, &len, from_encoding);
5442 haystack.no_encoding = needle.no_encoding = mbfl_name2no_encoding(from_encoding);
5444 php_error_docref(NULL, E_WARNING, "Unknown encoding \"%s\"", from_encoding);