--- parser3/src/include/pa_charset.h 2012/03/16 09:24:08 1.48 +++ parser3/src/include/pa_charset.h 2013/10/15 21:27:36 1.52 @@ -8,7 +8,7 @@ #ifndef PA_CHARSET_H #define PA_CHARSET_H -#define IDENT_PA_CHARSET_H "$Id: pa_charset.h,v 1.48 2012/03/16 09:24:08 moko Exp $" +#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 @@ #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: