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