Re: [Boost-users] [regex] ECMAScript support?
Armel Asselin wrote:
So my questions: - is boost.regex totally compliant with ECMAScript RE? or at least more than Perl engine? [1.33.1 vs. 1.34 ?]
I believe so, if there's anything missing from 1.34 let me know.
- did I understand well that I can use iterators and have both UTF8 (char*) and wchar_t searches in the same executable build? (thanks to their template nature?)
Iterators yes, no problem. As for character types you can use:
boost::regex with narrow characters, but not really with multibyte sequences.
boost::wregex with wchar_t sequences.
boost::u32regex with any of UTF8, UTF16 or UTF32 sequences (they all get converted to 32-bit code points on the fly), but you will need ICU to provide the Unicode character database. See http://www.boost.org/libs/regex/doc/icu_strings.html for the docs.
HTH, John. ok so i'll try the 1.34, any idea of the size of the binary (.lib/.a) for
"John Maddock"
Armel Asselin wrote:
ok so i'll try the 1.34, any idea of the size of the binary (.lib/.a) for that feature (just the necessary part of ICU+boost::regex?). i'd be really happy if it could take a few dozen KB :-)
If you statically link to Boost.Regex it adds about 50K to your executable, if you dynamically link the .so is a lot larger though. Enabling ICU support doesn't change the size of Boost.Regex much, but ICU itself is a big binary: there's no way around that since if you actually want Unicode support then the Unicode character database is *big*. John.
Armel Asselin wrote:
ok so i'll try the 1.34, any idea of the size of the binary (.lib/.a) for that feature (just the necessary part of ICU+boost::regex?). i'd be really happy if it could take a few dozen KB :-)
If you statically link to Boost.Regex it adds about 50K to your executable, if you dynamically link the .so is a lot larger though. Enabling ICU support doesn't change the size of Boost.Regex much, but ICU itself is a big binary: there's no way around that since if you actually want Unicode support then the Unicode character database is *big*.
John. Argh, the database is as large as my app... Is it imaginable to use the regex stuff with my own traits class (maybe supporting a few less stuff thann ICU??)
Armel
participants (2)
-
Armel Asselin
-
John Maddock