Function for email validation
WsjcppEmailValidation::isValidDate(const std::string &sValue, std::string &sError)
Just include this files:
- src/wsjcpp_validators.h
- src/wsjcpp_validators.cpp
$ wsjcpp install https://github.com/wsjcpp/wsjcpp-email-validation:master
std::string sError = "";
if (!WsjcppEmailValidation::isValid(vEmails[i], sError)) {
if (!pValidatorUUID->isValid("abcdef01-ABCD-EF23-1000-000000000001", sError)) {
std::cerr << sError << std::endl;
} else {
std::cout << "OK" << std::endl;
}