Need ASCII regex
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Daniel Turcanu |
Bug Description
As discussed on the zorba-coders mailing list, in order to build Zorba without ICU, there needs to be a ASCII regular expression library to take the place of ICU. The existing code in zorbatypes/
#ifndef ZORBA_NO_UNICODE
// existing regex class
#else
// new regex class backed by regex_ascii
#endif
You probably also need to provide an alternate implementation of convert_xquery_re() (in regex.h/.cpp) that currently converts an XQuery regular expression into an ICU regular expression. If the existing regex_ascii regular expressions exactly match XQuery regular expressions, then the alternate implementation of convert_xquery_re() can simply copy xq_re to lib_re as-is.
Changed in zorba: | |
status: | Fix Committed → Fix Released |
Done in svn 11287.
The API implemented is aproximately the same. Some functions with parameters "string" were deleted. I also had trouble understanding how next_token is supposed to work, please check it.
I also did some changes and updates in regex_ascii, but did not test. I am waiting for ZORBA_NO_UNICODE to compile before I start debugging it.