+ fixed to_expression_string converter for

<expr>.match(<pattern>) operator
This commit is contained in:
Artem Pavlenko 2010-06-29 11:56:42 +00:00
parent ccacc471d1
commit 4fbcb989c1

View file

@ -79,12 +79,12 @@ struct expression_string : boost::static_visitor<void>
// TODO - replace with pre ICU 4.2 compatible fromUTF32()
#if (U_ICU_VERSION_MAJOR_NUM >= 4) && (U_ICU_VERSION_MINOR_NUM >=2)
boost::apply_visitor(expression_string(str_),x.expr);
str_ +=".match(";
str_ +=".match('";
std::string utf8;
UnicodeString ustr = UnicodeString::fromUTF32( &x.pattern.str()[0] ,x.pattern.str().length());
to_utf8(ustr,utf8);
str_ += utf8;
str_ +=")";
str_ +="')";
#endif
}