Ticket #3631: icuregex.cpp

File icuregex.cpp, 275 bytes (added by Matthias Schiffer <matthias@…>, 13 years ago)

Minimal example

Line 
1#define U_USING_ICU_NAMESPACE 0
2#include <unicode/unistr.h>
3
4#include <boost/regex/icu.hpp>
5
6bool is_valid_password(const icu::UnicodeString& password, const icu::UnicodeString& requirements)
7{
8 return boost::u32regex_match(password, boost::make_u32regex(requirements));
9}