Searched refs:encoding (Results 1 - 25 of 44) sorted by relevance

12

/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c3 * vim600: encoding=utf-8
117 * encoding filter
379 * encoding detector
523 const mbfl_encoding *encoding = NULL; local
533 encoding = filter->encoding;
540 if (!encoding) {
545 encoding = filter->encoding;
552 return encoding;
557 const mbfl_encoding *encoding = mbfl_encoding_detector_judge2(identd); local
573 const mbfl_encoding *encoding; local
640 const mbfl_encoding *encoding; local
723 const mbfl_encoding *encoding; local
816 const mbfl_encoding *encoding; local
940 const mbfl_encoding *encoding; local
1307 const mbfl_encoding *encoding; local
1465 const mbfl_encoding *encoding; local
1968 const mbfl_encoding *encoding; local
2340 mbfl_mime_header_encode( mbfl_string *string, mbfl_string *result, enum mbfl_no_encoding outcode, enum mbfl_no_encoding encoding, const char *linefeed, int indent) argument
2399 enum mbfl_no_encoding encoding; member in struct:mime_header_decoder_data
2407 const mbfl_encoding *encoding; local
[all...]
H A Dmbfilter.h2 * vim: encoding=utf-8:
145 * encoding detector
164 * encoding converter
171 * identify encoding
236 enum mbfl_no_encoding encoding);
251 enum mbfl_no_encoding encoding,
H A Dmbfl_encoding.c224 /* encoding resolver */
228 const mbfl_encoding *encoding; local
236 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL){
237 if (strcasecmp(encoding->name, name) == 0) {
238 return encoding;
244 while ((encoding = mbfl_encoding_ptr_list[i++]) != NULL) {
245 if (encoding->mime_name != NULL) {
246 if (strcasecmp(encoding->mime_name, name) == 0) {
247 return encoding;
254 while ((encoding
272 const mbfl_encoding *encoding; local
288 const mbfl_encoding *encoding; local
301 const mbfl_encoding *encoding; local
320 const mbfl_encoding *encoding; local
333 const mbfl_encoding *encoding; local
[all...]
H A Dmbfl_ident.c179 const struct mbfl_identify_vtbl * mbfl_identify_filter_get_vtbl(enum mbfl_no_encoding encoding) argument
186 if (vtbl->encoding == encoding) {
194 mbfl_identify_filter *mbfl_identify_filter_new(enum mbfl_no_encoding encoding) argument
204 if (mbfl_identify_filter_init(filter, encoding)) {
212 mbfl_identify_filter *mbfl_identify_filter_new2(const mbfl_encoding *encoding) argument
222 if (mbfl_identify_filter_init2(filter, encoding)) {
231 int mbfl_identify_filter_init(mbfl_identify_filter *filter, enum mbfl_no_encoding encoding) argument
233 const mbfl_encoding *enc = mbfl_no2encoding(encoding);
237 int mbfl_identify_filter_init2(mbfl_identify_filter *filter, const mbfl_encoding *encoding) argument
[all...]
H A Dmbfl_ident.h49 const mbfl_encoding *encoding; member in struct:_mbfl_identify_filter
53 enum mbfl_no_encoding encoding; member in struct:mbfl_identify_vtbl
59 MBFLAPI extern const struct mbfl_identify_vtbl * mbfl_identify_filter_get_vtbl(enum mbfl_no_encoding encoding);
60 MBFLAPI extern mbfl_identify_filter * mbfl_identify_filter_new(enum mbfl_no_encoding encoding);
61 MBFLAPI extern mbfl_identify_filter * mbfl_identify_filter_new2(const mbfl_encoding *encoding);
63 MBFLAPI extern int mbfl_identify_filter_init(mbfl_identify_filter *filter, enum mbfl_no_encoding encoding);
64 MBFLAPI extern int mbfl_identify_filter_init2(mbfl_identify_filter *filter, const mbfl_encoding *encoding);
/PHP_TRUNK/ext/gd/libgd/
H A Dgdft.c370 unsigned short platform, encoding; local
481 encoding = charmap->encoding_id;
491 if (charmap->encoding == FT_ENCODING_MS_SYMBOL
492 || charmap->encoding == FT_ENCODING_ADOBE_CUSTOM
493 || charmap->encoding == FT_ENCODING_ADOBE_STANDARD) {
502 if ((platform == 3 && encoding == 1) /* Windows Unicode */
503 || (platform == 3 && encoding == 0) /* Windows Symbol */
504 || (platform == 2 && encoding == 1) /* ISO Unicode */
512 } else if (platform == 3 && encoding == 4) { /* Windows Big5 */
518 } else if (platform == 3 && encoding
[all...]
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dencodings.c117 char* utf8_encode(const char *s, int len, int *newlen, const char* encoding) argument
119 return convert(s, len, newlen, encoding, "UTF-8");
123 char* utf8_decode(const char *s, int len, int *newlen, const char* encoding) argument
125 return convert(s, len, newlen, "UTF-8", encoding);
H A Dencodings.h43 char* utf8_encode(const char *s, int len, int *newlen, ENCODING_ID encoding);
44 char* utf8_decode(const char *s, int len, int *newlen, ENCODING_ID encoding);
H A Dxml_element.c82 * patch from mukund - fix non utf-8 encoding conversions
114 * - output option for character encoding. Defaults to (none) utf-8.
139 #define XML_DECL_ENCODING_ATTR "encoding"
398 if(options->encoding && *options->encoding) {
403 xml_elem_writefunc(fptr, options->encoding, data, 0);
642 /* Check if we need to decode utf-8 parser output to another encoding */
643 if(mydata->needs_enc_conversion && mydata->input_options->encoding) {
645 char* add_text = utf8_decode(s, len, &new_len, mydata->input_options->encoding);
706 mydata.needs_enc_conversion = options->encoding
[all...]
H A Dxml_element.h92 const char* encoding; /* <?xml encoding="<encoding>" ?> */ member in struct:_xml_output_options
104 ENCODING_ID encoding; /* which encoding to use. */ member in struct:_xml_input_options
/PHP_TRUNK/ext/zip/lib/
H A Dzip_file_set_comment.c67 cstr->encoding = ZIP_ENCODING_UTF8_KNOWN;
H A Dzip_set_name.c66 str->encoding = ZIP_ENCODING_UTF8_KNOWN;
71 /* TODO: encoding flags needed for CP437? */
H A Dzip_string.c2 zip_string.c -- string handling (with encoding)
67 /* TODO: encoding */
100 if (string->encoding == ZIP_ENCODING_UNKNOWN)
104 && string->encoding != ZIP_ENCODING_ASCII && string->encoding != ZIP_ENCODING_UTF8_KNOWN)
105 || (string->encoding == ZIP_ENCODING_CP437)) {
172 s->encoding = ZIP_ENCODING_UNKNOWN;
H A Dzip_utf-8.c131 if (str->encoding != ZIP_ENCODING_UNKNOWN)
132 enc = str->encoding;
167 str->encoding = enc;
171 str->encoding = enc = ZIP_ENCODING_UTF8_KNOWN;
/PHP_TRUNK/Zend/
H A Dzend_multibyte.c33 static const char *dummy_encoding_name_getter(const zend_encoding *encoding) argument
35 return (const char*)encoding;
38 static int dummy_encoding_lexer_compatibility_checker(const zend_encoding *encoding) argument
65 static int dummy_internal_encoding_setter(const zend_encoding *encoding) argument
133 ZEND_API const char *zend_multibyte_get_encoding_name(const zend_encoding *encoding) argument
135 return multibyte_functions.encoding_name_getter(encoding);
138 ZEND_API int zend_multibyte_check_lexer_compatibility(const zend_encoding *encoding) argument
140 return multibyte_functions.lexer_compatibility_checker(encoding);
178 ZEND_API int zend_multibyte_set_internal_encoding(const zend_encoding *encoding) argument
180 return multibyte_functions.internal_encoding_setter(encoding);
[all...]
H A Dzend_multibyte.h30 typedef const char* (*zend_encoding_name_getter)(const zend_encoding *encoding);
31 typedef int (*zend_encoding_lexer_compatibility_checker)(const zend_encoding *encoding);
36 typedef int (*zend_encoding_internal_encoding_setter)(const zend_encoding *encoding);
66 ZEND_API const char *zend_multibyte_get_encoding_name(const zend_encoding *encoding);
67 ZEND_API int zend_multibyte_check_lexer_compatibility(const zend_encoding *encoding);
75 ZEND_API int zend_multibyte_set_internal_encoding(const zend_encoding *encoding);
/PHP_TRUNK/ext/pspell/
H A Dpspell.c80 ZEND_ARG_INFO(0, encoding)
89 ZEND_ARG_INFO(0, encoding)
135 ZEND_ARG_INFO(0, encoding)
262 /* {{{ proto int pspell_new(string language [, string spelling [, string jargon [, string encoding [, int mode]]]])
266 char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL; local
285 &jargon, &jargon_len, &encoding, &encoding_len, &mode) == FAILURE) {
323 pspell_config_replace(config, "encoding", encoding);
359 /* {{{ proto int pspell_new_personal(string personal, string language [, string spelling [, string jargon [, string encoding [, int mode]]]])
363 char *personal, *language, *spelling = NULL, *jargon = NULL, *encoding local
687 char *language, *spelling = NULL, *jargon = NULL, *encoding = NULL; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_soap.h103 xmlCharEncodingHandlerPtr encoding; member in struct:_soapService
175 xmlCharEncodingHandlerPtr encoding; variable
/PHP_TRUNK/ext/xml/
H A Dxml.c104 ZEND_ARG_INFO(0, encoding)
108 ZEND_ARG_INFO(0, encoding)
276 /* All the encoding functions are set to NULL right now, since all
277 * the encoding is currently done internally by expat/xmltok.
383 static void _xml_xmlchar_zval(const XML_Char *s, int len, const XML_Char *encoding, zval *ret) argument
392 ZVAL_STR(ret, xml_utf8_decode(s, len, encoding));
562 PHP_XML_API zend_string *xml_utf8_encode(const char *s, size_t len, const XML_Char *encoding) argument
568 xml_encoding *enc = xml_get_encoding(encoding);
573 /* If the target encoding was unknown, fail */
613 PHP_XML_API zend_string *xml_utf8_decode(const XML_Char *s, size_t len, const XML_Char *encoding) argument
1103 XML_Char *encoding; local
[all...]
/PHP_TRUNK/ext/xmlreader/
H A Dphp_xmlreader.c849 /* {{{ proto boolean XMLReader::open(string URI [, string encoding [, int options]])
858 char *encoding = NULL; local
862 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|s!l", &source, &source_len, &encoding, &encoding_len, &options) == FAILURE) {
884 reader = xmlReaderForFile(valid_file, encoding, options);
1033 /* {{{ proto boolean XMLReader::XML(string source [, string encoding [, int options]])
1041 char *source, *uri = NULL, *encoding = NULL; local
1047 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s!l", &source, &source_len, &encoding, &encoding_len, &options) == FAILURE) {
1086 ret = xmlTextReaderSetup(reader, NULL, uri, encoding, options);
1227 ZEND_ARG_INFO(0, encoding)
1259 ZEND_ARG_INFO(0, encoding)
[all...]
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c85 ZEND_ARG_INFO(0, encoding)
91 ZEND_ARG_INFO(0, encoding)
234 #define ENCODING_KEY "encoding"
368 options->xmlrpc_out.xml_elem_opts.encoding = ENCODING_DEFAULT;
414 /* encoding code set */
417 options->xmlrpc_out.xml_elem_opts.encoding = estrdup(Z_STRVAL_P(val));
700 if (strcmp(out.xmlrpc_out.xml_elem_opts.encoding, ENCODING_DEFAULT) != 0) {
701 efree((char *)out.xmlrpc_out.xml_elem_opts.encoding);
742 opts.xml_elem_opts.encoding = encoding_in ? utf8_get_encoding_id_from_string(encoding_in) : ENCODING_DEFAULT;
770 /* {{{ proto array xmlrpc_decode_request(string xml, string& method [, string encoding])
774 char *xml, *encoding = NULL; local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.h72 typedef void (*php_rfc1867_set_input_encoding_t)(const zend_encoding *encoding);
73 typedef char* (*php_rfc1867_getword_t)(const zend_encoding *encoding, char **line, char stop);
74 typedef char* (*php_rfc1867_getword_conf_t)(const zend_encoding *encoding, char *str);
75 typedef char* (*php_rfc1867_basename_t)(const zend_encoding *encoding, char *str);
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c105 static void php_mb_gpc_set_input_encoding(const zend_encoding *encoding);
217 ZEND_ARG_INFO(0, encoding)
225 ZEND_ARG_INFO(0, encoding)
229 ZEND_ARG_INFO(0, encoding)
237 ZEND_ARG_INFO(0, encoding)
252 ZEND_ARG_INFO(0, encoding)
259 ZEND_ARG_INFO(0, encoding)
266 ZEND_ARG_INFO(0, encoding)
273 ZEND_ARG_INFO(0, encoding)
280 ZEND_ARG_INFO(0, encoding)
759 const mbfl_encoding *encoding = mbfl_name2encoding(p1); local
839 const mbfl_encoding *encoding = mbfl_name2encoding(Z_STRVAL_P(hash_entry)); local
886 php_mb_zend_encoding_name_getter(const zend_encoding *encoding) argument
893 const mbfl_encoding *encoding = (const mbfl_encoding*)_encoding; local
973 php_mb_zend_internal_encoding_setter(const zend_encoding *encoding) argument
1084 php_mb_rfc1867_substring_conf(const zend_encoding *encoding, char *start, int len, char quote) argument
1107 php_mb_rfc1867_getword(const zend_encoding *encoding, char **line, char stop) argument
1147 php_mb_rfc1867_getword_conf(const zend_encoding *encoding, char *str) argument
1173 php_mb_rfc1867_basename(const zend_encoding *encoding, char *filename) argument
1288 const mbfl_encoding *encoding; local
1319 const mbfl_encoding *encoding; local
1770 const mbfl_encoding *encoding; local
1893 const mbfl_encoding *encoding; local
2124 const mbfl_encoding *encoding; local
2764 char *str, *encoding; local
2844 char *encoding; local
2947 char *str, *trimmarker, *encoding; local
3319 const mbfl_encoding *encoding; local
3335 const mbfl_encoding *encoding; local
3783 char *str, *encoding; local
4218 const mbfl_encoding *encoding = mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order_list_size), MBSTRG(strict_detection)); local
4238 const mbfl_encoding *encoding = mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order_list_size), MBSTRG(strict_detection)); local
4528 const mbfl_encoding *encoding = MBSTRG(current_internal_encoding); local
4768 php_mb_gpc_set_input_encoding(const zend_encoding *encoding) argument
[all...]
/PHP_TRUNK/ext/dom/
H A Ddocument.c140 ZEND_ARG_INFO(0, encoding)
305 /* {{{ encoding string
306 URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-encoding
312 char *encoding; local
319 encoding = (char *) docp->encoding;
321 if (encoding != NULL) {
322 ZVAL_STRING(retval, encoding);
347 if (docp->encoding != NULL) {
348 xmlFree((xmlChar *)docp->encoding);
1259 char *encoding, *version = NULL; local
2083 const char *encoding; local
[all...]
/PHP_TRUNK/ext/zlib/
H A Dzlib.c337 static zend_string *php_zlib_encode(const char *in_buf, size_t in_len, int encoding, int level) argument
347 if (Z_OK == (status = deflateInit2(&Z, level, Z_DEFLATED, encoding, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY))) {
423 static int php_zlib_decode(const char *in_buf, size_t in_len, char **out_buf, size_t *out_len, int encoding, size_t max_len) argument
434 status = inflateInit2(&Z, encoding);
446 if (PHP_ZLIB_ENCODING_ANY == encoding) {
448 encoding = PHP_ZLIB_ENCODING_RAW;
483 int encoding, rv; local
497 if (!(encoding = php_zlib_output_encoding())) {
502 switch (encoding) {
664 zend_long encoding
760 zend_long encoding; local
886 zend_long encoding, level = -1, memory = 8; local
[all...]

Completed in 50 milliseconds

12