Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
email.h
1#ifndef SOURCEMETA_CORE_EMAIL_H_
2#define SOURCEMETA_CORE_EMAIL_H_
3
4#ifndef SOURCEMETA_CORE_EMAIL_EXPORT
5#include <sourcemeta/core/email_export.h>
6#endif
7
8#include <optional> // std::optional
9#include <string> // std::string
10#include <string_view> // std::string_view
11
21
22namespace sourcemeta::core {
23
58SOURCEMETA_CORE_EMAIL_EXPORT
59auto is_email(const std::string_view value) -> bool;
60
78SOURCEMETA_CORE_EMAIL_EXPORT
79auto is_idn_email(const std::string_view value) -> bool;
80
104SOURCEMETA_CORE_EMAIL_EXPORT
105auto is_idn_email_uts46(const std::string_view value) -> bool;
106
124SOURCEMETA_CORE_EMAIL_EXPORT
125auto mailto_iri(const std::string_view value) -> std::optional<std::string>;
126
152SOURCEMETA_CORE_EMAIL_EXPORT
153auto acct_iri(const std::string_view value) -> std::optional<std::string>;
154
155} // namespace sourcemeta::core
156
157#endif
SOURCEMETA_CORE_EMAIL_EXPORT auto mailto_iri(const std::string_view value) -> std::optional< std::string >
SOURCEMETA_CORE_EMAIL_EXPORT auto is_idn_email(const std::string_view value) -> bool
SOURCEMETA_CORE_EMAIL_EXPORT auto acct_iri(const std::string_view value) -> std::optional< std::string >
SOURCEMETA_CORE_EMAIL_EXPORT auto is_idn_email_uts46(const std::string_view value) -> bool
SOURCEMETA_CORE_EMAIL_EXPORT auto is_email(const std::string_view value) -> bool