--- parser3/src/include/pa_charset.h 2002/01/29 08:45:36 1.12 +++ parser3/src/include/pa_charset.h 2002/06/28 09:59:00 1.16 @@ -1,10 +1,10 @@ /** @file Parser: Charset connection decl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_charset.h,v 1.12 2002/01/29 08:45:36 paf Exp $ + $Id: pa_charset.h,v 1.16 2002/06/28 09:59:00 paf Exp $ */ #ifndef PA_CHARSET_H @@ -75,6 +75,7 @@ private: void transcodeFromUTF8(Pool& pool, const void *source_body, size_t source_content_length, const void *& dest_body, size_t& dest_content_length) const; + void transcodeToCharset(Pool& pool, const Charset& dest_transcoder, const void *source_body, size_t source_content_length, @@ -109,8 +110,12 @@ public: const char *transcode_cstr(xmlChar *s); /// converts xmlChar* null-terminated string to parser String String& transcode(xmlChar *s); + /** converts sized char * to xmlChar* + @returns xmlChar * which caller should free + */ + xmlChar *transcode_buf2xchar(const char *buf, size_t buf_size); /// converts char * to GdomeDOMString - GdomeDOMString_auto_ptr transcode_buf(const char *buf, size_t buf_size); + GdomeDOMString_auto_ptr transcode_buf2dom(const char *buf, size_t buf_size); /// converts parser String to GdomeDOMString GdomeDOMString_auto_ptr transcode(const String& s);