|
|
| version 1.15.2.1, 2002/06/27 11:56:18 | version 1.21, 2003/03/21 09:43:48 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: Charset connection decl. | Parser: Charset connection decl. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| */ | */ |
| #ifndef PA_CHARSET_H | #ifndef PA_CHARSET_H |
| #define PA_CHARSET_H | #define PA_CHARSET_H |
| static const char* IDENT_CHARSET_H="$Date$"; | |
| #include "pa_pool.h" | #include "pa_pool.h" |
| #include "pa_exception.h" | #include "pa_exception.h" |
| #include "pa_common.h" | #include "pa_common.h" |
| Line 56 public: | Line 56 public: |
| const Charset& dest_transcoder, const void *& dest_body, size_t& dest_content_length | const Charset& dest_transcoder, const void *& dest_body, size_t& dest_content_length |
| ); | ); |
| static String& transcode(Pool& pool, | |
| const Charset& source_transcoder, | |
| const Charset& dest_transcoder, | |
| const String& src); | |
| static void transcode(Pool& pool, | |
| const Charset& source_transcoder, | |
| const Charset& dest_transcoder, | |
| Array& src); | |
| static void transcode(Pool& pool, | |
| const Charset& source_transcoder, | |
| const Charset& dest_transcoder, | |
| Hash& src); | |
| #ifdef XML | #ifdef XML |
| xmlCharEncodingHandler *transcoder(const String *source); | xmlCharEncodingHandler *transcoder(const String *source); |
| #endif | #endif |
| Line 105 public: | Line 120 public: |
| /// converts GdomeDOMString string to char * | /// converts GdomeDOMString string to char * |
| const char *transcode_cstr(GdomeDOMString *s); | const char *transcode_cstr(GdomeDOMString *s); |
| /// converts GdomeDOMString string to parser String | /// converts GdomeDOMString string to parser String |
| String& transcode(GdomeDOMString *s); | String& transcode(GdomeDOMString *s |
| #ifndef NO_STRING_ORIGIN | |
| , const String *origin | |
| #endif | |
| ); | |
| /// converts xmlChar* null-terminated string to char * | /// converts xmlChar* null-terminated string to char * |
| const char *transcode_cstr(xmlChar *s); | const char *transcode_cstr(xmlChar *s); |
| /// converts xmlChar* null-terminated string to parser String | /// converts xmlChar* null-terminated string to parser String |
| String& transcode(xmlChar *s); | String& transcode(xmlChar *s |
| #ifndef NO_STRING_ORIGIN | |
| , const String *origin | |
| #endif | |
| ); | |
| /** converts sized char * to xmlChar* | /** converts sized char * to xmlChar* |
| @returns xmlChar * which caller should free | @returns xmlChar * which caller should free |
| */ | */ |