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

/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
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
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);
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
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);
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...]
/PHP_TRUNK/ext/soap/interop/
H A Dclient_round2_params.php37 var $encoding = 'UTF-8'; variable
177 $test->encoding = 'UTF-8';
180 $test->encoding = 'UTF-8';
/PHP_TRUNK/ext/zip/lib/
H A Dzipint.h240 #define ZIP_GPBF_ENCODING_UTF_8 0x0800 /* file name encoding is UTF-8 */
253 /* encoding type */
390 enum zip_encoding_type encoding; /* autorecognized encoding */
386 enum zip_encoding_type encoding; /* autorecognized encoding */ member in struct:zip_string
/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 TSRMLS_DC)
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 TSRMLS_DC)
180 return multibyte_functions.internal_encoding_setter(encoding TSRMLS_C
[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/mbstring/
H A Dmbstring.c105 static void php_mb_gpc_set_input_encoding(const zend_encoding *encoding TSRMLS_DC);
224 ZEND_ARG_INFO(0, encoding)
232 ZEND_ARG_INFO(0, encoding)
236 ZEND_ARG_INFO(0, encoding)
244 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)
287 ZEND_ARG_INFO(0, encoding)
763 const mbfl_encoding *encoding = mbfl_name2encoding(p1); local
843 const mbfl_encoding *encoding = mbfl_name2encoding(Z_STRVAL_P(hash_entry)); local
890 php_mb_zend_encoding_name_getter(const zend_encoding *encoding) argument
897 const mbfl_encoding *encoding = (const mbfl_encoding*)_encoding; local
1088 php_mb_rfc1867_substring_conf(const zend_encoding *encoding, char *start, int len, char quote TSRMLS_DC) argument
1111 php_mb_rfc1867_getword(const zend_encoding *encoding, char **line, char stop TSRMLS_DC) argument
1151 php_mb_rfc1867_getword_conf(const zend_encoding *encoding, char *str TSRMLS_DC) argument
1177 php_mb_rfc1867_basename(const zend_encoding *encoding, char *filename TSRMLS_DC) argument
1292 const mbfl_encoding *encoding; local
1323 const mbfl_encoding *encoding; local
1760 const mbfl_encoding *encoding; local
1883 const mbfl_encoding *encoding; local
2114 const mbfl_encoding *encoding; local
2754 char *str, *encoding; local
2834 char *encoding; local
2937 char *str, *trimmarker, *encoding; local
3309 const mbfl_encoding *encoding; local
3325 const mbfl_encoding *encoding; local
3773 char *str, *encoding; local
4204 const mbfl_encoding *encoding = mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order_list_size), MBSTRG(strict_detection)); local
4224 const mbfl_encoding *encoding = mbfl_identify_encoding2(&orig_str, MBSTRG(current_detect_order_list), MBSTRG(current_detect_order_list_size), MBSTRG(strict_detection)); local
4514 const mbfl_encoding *encoding = MBSTRG(current_internal_encoding); local
[all...]
H A Dphp_mbregex.c180 * encoding name resolver
183 /* {{{ encoding name map */
652 /* {{{ proto string mb_regex_encoding([string encoding])
653 Returns the current encoding for regex as a string. */
657 char *encoding; local
661 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &encoding, &encoding_len) == FAILURE) {
674 mbctype = _php_mb_regex_name2mbctype(encoding);
677 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown encoding \"%s\"", 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/xml/
H A Dcompat.c441 XML_ParserCreate(const XML_Char *encoding) argument
443 return XML_ParserCreate_MM(encoding, NULL, NULL);
447 XML_ParserCreateNS(const XML_Char *encoding, const XML_Char sep) argument
452 return XML_ParserCreate_MM(encoding, NULL, tmp);
456 XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *memsuite, const XML_Char *sep) argument
573 the inifite loop in libxml <= 2.6.17 which occurs when no encoding
644 (const XML_Char *)"Unknown encoding",
645 (const XML_Char *)"Unsupported encoding",
693 (const XML_Char *)"Invalid XML encoding name",
695 (const XML_Char *)"Invalid encoding",
[all...]
H A Dxml.c101 ZEND_ARG_INFO(0, encoding)
105 ZEND_ARG_INFO(0, encoding)
273 /* All the encoding functions are set to NULL right now, since all
274 * the encoding is currently done internally by expat/xmltok.
377 static void _xml_xmlchar_zval(const XML_Char *s, int len, const XML_Char *encoding, zval *ret) argument
386 ZVAL_STR(ret, xml_utf8_decode(s, len, encoding));
557 PHPAPI zend_string *xml_utf8_encode(const char *s, size_t len, const XML_Char *encoding) argument
563 xml_encoding *enc = xml_get_encoding(encoding);
568 /* If the target encoding was unknown, fail */
608 PHPAPI zend_string *xml_utf8_decode(const XML_Char *s, size_t len, const XML_Char *encoding) argument
1100 XML_Char *encoding; local
[all...]
/PHP_TRUNK/ext/xmlreader/
H A Dphp_xmlreader.c848 /* {{{ proto boolean XMLReader::open(string URI [, string encoding [, int options]])
857 char *encoding = NULL; local
861 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|s!l", &source, &source_len, &encoding, &encoding_len, &options) == FAILURE) {
883 reader = xmlReaderForFile(valid_file, encoding, options);
1032 /* {{{ proto boolean XMLReader::XML(string source [, string encoding [, int options]])
1040 char *source, *uri = NULL, *encoding = NULL; local
1046 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!l", &source, &source_len, &encoding, &encoding_len, &options) == FAILURE) {
1085 ret = xmlTextReaderSetup(reader, NULL, uri, encoding, options);
1226 ZEND_ARG_INFO(0, encoding)
1258 ZEND_ARG_INFO(0, encoding)
[all...]
/PHP_TRUNK/ext/xmlrpc/
H A Dxmlrpc-epi-php.c87 ZEND_ARG_INFO(0, encoding)
93 ZEND_ARG_INFO(0, encoding)
236 #define ENCODING_KEY "encoding"
370 options->xmlrpc_out.xml_elem_opts.encoding = ENCODING_DEFAULT;
416 /* encoding code set */
419 options->xmlrpc_out.xml_elem_opts.encoding = estrdup(Z_STRVAL_P(val));
702 if (strcmp(out.xmlrpc_out.xml_elem_opts.encoding, ENCODING_DEFAULT) != 0) {
703 efree((char *)out.xmlrpc_out.xml_elem_opts.encoding);
744 opts.xml_elem_opts.encoding = encoding_in ? utf8_get_encoding_id_from_string(encoding_in) : ENCODING_DEFAULT;
772 /* {{{ proto array xmlrpc_decode_request(string xml, string& method [, string encoding])
776 char *xml, *encoding = NULL; local
[all...]
/PHP_TRUNK/ext/imap/
H A Dphp_imap.c2941 /* begin encoding */
3293 if (body->encoding <= ENCMAX) {
3294 add_property_long(return_value, "encoding", body->encoding);
3559 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) {
3561 bod->encoding = (short) Z_LVAL_P(pvalue);
3662 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) {
3664 bod->encoding
4197 char *str, *string, *charset, encoding, *text, *decode; local
[all...]
/PHP_TRUNK/main/
H A Drfc1867.c49 static char *php_ap_getword(const zend_encoding *encoding, char **line, char stop TSRMLS_DC);
50 static char *php_ap_getword_conf(const zend_encoding *encoding, char *str TSRMLS_DC);
486 static char *php_ap_getword(const zend_encoding *encoding, char **line, char stop TSRMLS_DC) argument
540 static char *php_ap_getword_conf(const zend_encoding *encoding, char *str TSRMLS_DC) argument
565 static char *php_ap_basename(const zend_encoding *encoding, char *path TSRMLS_DC) argument
/PHP_TRUNK/ext/zlib/
H A Dzlib.c319 static zend_string *php_zlib_encode(const char *in_buf, size_t in_len, int encoding, int level TSRMLS_DC) argument
329 if (Z_OK == (status = deflateInit2(&Z, level, Z_DEFLATED, encoding, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY))) {
405 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 TSRMLS_DC) argument
416 status = inflateInit2(&Z, encoding);
428 if (PHP_ZLIB_ENCODING_ANY == encoding) {
430 encoding = PHP_ZLIB_ENCODING_RAW;
465 int encoding, rv; local
479 if (!(encoding = php_zlib_output_encoding(TSRMLS_C))) {
484 switch (encoding) {
647 zend_long encoding
[all...]
/PHP_TRUNK/ext/gd/libgd/
H A Dgdft.c370 unsigned short platform, encoding; local
482 encoding = charmap->encoding_id;
492 if (charmap->encoding == FT_ENCODING_MS_SYMBOL
493 || charmap->encoding == FT_ENCODING_ADOBE_CUSTOM
494 || charmap->encoding == FT_ENCODING_ADOBE_STANDARD) {
503 if ((platform == 3 && encoding == 1) /* Windows Unicode */
504 || (platform == 3 && encoding == 0) /* Windows Symbol */
505 || (platform == 2 && encoding == 1) /* ISO Unicode */
513 } else if (platform == 3 && encoding == 4) { /* Windows Big5 */
519 } else if (platform == 3 && encoding
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c395 ZEND_ARG_INFO(0, encoding)
826 char *encoding; local
830 encoding = (char *) pg_encoding_to_char(PQclientEncoding(conn));
831 if (!strncmp(encoding, "SJIS", sizeof("SJIS")-1) ||
832 !strncmp(encoding, "SHIFT_JIS_2004", sizeof("SHIFT_JIS_2004")-1) ||
833 !strncmp(encoding, "BIG5", sizeof("BIG5")-1) ||
834 !strncmp(encoding, "GB18030", sizeof("GB18030")-1) ||
835 !strncmp(encoding, "GBK", sizeof("GBK")-1) ||
836 !strncmp(encoding, "JOHAB", sizeof("JOHAB")-1) ||
837 !strncmp(encoding, "UH
3875 char *encoding; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_soap.h105 xmlCharEncodingHandlerPtr encoding; member in struct:_soapService
177 xmlCharEncodingHandlerPtr encoding; variable
H A Dsoap.c276 ZEND_ARG_INFO(0, encoding)
611 SOAP_GLOBAL(encoding) = NULL;
970 /* {{{ proto object SoapVar::SoapVar ( mixed data, int encoding [, string type_name [, string type_namespace [, string node_name [, string node_namespace]]]])
1169 if ((tmp = zend_hash_str_find(ht, "encoding", sizeof("encoding")-1)) != NULL &&
1171 xmlCharEncodingHandlerPtr encoding; local
1173 encoding = xmlFindCharEncodingHandler(Z_STRVAL_P(tmp));
1174 if (encoding == NULL) {
1175 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Invalid 'encoding' option - '%s'", Z_STRVAL_P(tmp));
1177 service->encoding
1560 zval *server_vars, *encoding; local
2462 xmlCharEncodingHandlerPtr encoding; local
[all...]
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3.c2463 ** filenames between the UTF-8 encoding used by SQLite
2464 ** and whatever filename encoding is used by the particular Windows
2767 ** ^The default encoding for the database will be UTF-8 if
2938 ** corresponding octet. If this process generates an invalid UTF-8 encoding,
2941 ** <b>Note to Windows users:</b> The encoding used for the filename argument
3551 ** always in UTF-8 encoding even if the named parameter was
3640 ** again in a different encoding.
4076 ** these routines are the text encoding expected for
4102 ** [SQLITE_UTF8 | text encoding] this SQL function prefers for
4110 ** each encoding
67573 u8 encoding = ENC(db); /* The database encoding */ local
99419 u8 encoding; local
[all...]

Completed in 143 milliseconds