+ fixed to_expression_string converter for
<expr>.match(<pattern>) operator
This commit is contained in:
parent
ccacc471d1
commit
4fbcb989c1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue