--- parser3/src/main/pa_string.C 2008/07/21 07:37:11 1.213 +++ parser3/src/main/pa_string.C 2008/08/15 15:30:12 1.215 @@ -5,9 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_STRING_C="$Date: 2008/07/21 07:37:11 $"; - -#include "pcre.h" +static const char * const IDENT_STRING_C="$Date: 2008/08/15 15:30:12 $"; #include "pa_string.h" #include "pa_exception.h" @@ -15,6 +13,8 @@ static const char * const IDENT_STRING_C #include "pa_dictionary.h" #include "pa_charset.h" +#include "pcre.h" + const String String::Empty; int pa_atoi(const char* str, const String* problem_source) { @@ -495,6 +495,10 @@ Table* String::match(Charset& source_cha bool need_pre_post_match=(match_features & MF_NEED_PRE_POST_MATCH) != 0; bool just_count_matches=(match_features & MF_JUST_COUNT_MATCHES) != 0; bool global=option_bits[1]!=0; + + if(source_charset.isUTF8()) + option_bits[0]=option_bits[0] | PCRE_UTF8; + pcre *code=pcre_compile(pattern, option_bits[0], &errptr, &erroffset, source_charset.pcre_tables);