Skip to content

Instantly share code, notes, and snippets.

@rmartinho
Created April 11, 2013 20:05
Show Gist options
  • Save rmartinho/cea973f04c284d0a234a to your computer and use it in GitHub Desktop.
Save rmartinho/cea973f04c284d0a234a to your computer and use it in GitHub Desktop.
Using ICU with Boost.Regex for minimal Unicode regex support
#include <boost/regex/icu.hpp>
#include <boost/regex.hpp>
#include <cassert>
int main() {
auto pattern = boost::make_u32regex(".");
assert(boost::u32regex_match(u8"\U0001F34C", pattern));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment