#define U_USING_ICU_NAMESPACE 0 #include #include bool is_valid_password(const icu::UnicodeString& password, const icu::UnicodeString& requirements) { return boost::u32regex_match(password, boost::make_u32regex(requirements)); }