Skip to content

wsjcpp/wsjcpp-email-validation

Repository files navigation

wsjcpp-email-validation

Github Stars Github Stars Github Forks

Function for email validation

static functions

  • WsjcppEmailValidation::isValidDate(const std::string &sValue, std::string &sError)

Integrate to your project

Just include this files:

  • src/wsjcpp_validators.h
  • src/wsjcpp_validators.cpp

Integrate via wsjcpp

$ wsjcpp install https://github.com/wsjcpp/wsjcpp-email-validation:master

Example usage

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;
}