--- parser3/src/include/pa_charset.h 2011/02/21 22:57:47 1.47 +++ parser3/src/include/pa_charset.h 2013/10/15 21:27:36 1.52 @@ -1,14 +1,14 @@ /** @file Parser: Charset connection decl. - Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_CHARSET_H #define PA_CHARSET_H -static const char * const IDENT_CHARSET_H="$Date: 2011/02/21 22:57:47 $"; +#define IDENT_PA_CHARSET_H "$Id: pa_charset.h,v 1.52 2013/10/15 21:27:36 moko Exp $" #include "pa_exception.h" @@ -16,11 +16,9 @@ static const char * const IDENT_CHARSET_ #include "pa_hash.h" #include "pa_array.h" -// pcre.h must be included BEFORE pcre_internal.h #include "pcre.h" -// have to call config.h for using pcre_internal.h as well -#include "../lib/pcre/config.h" -#include "pcre_internal.h" +// we are using some pcre_internal.h stuff as well +#include "../lib/pcre/pa_pcre_internal.h" #ifdef XML #include "libxml/encoding.h" @@ -194,6 +192,7 @@ size_t getUTF8CharPos(const XMLByte* src size_t lengthUTF8(const XMLByte* srcBegin, const XMLByte* srcEnd); unsigned int lengthUTF8Char(const XMLByte c); +const char *fixUTF8(const char *src); class UTF8_string_iterator { public: