39 bool upperLetters =
true;
40 bool lowerLetters =
true;
61FAKER_CXX_EXPORT std::string
username(std::optional<std::string> firstName = std::nullopt,
62 std::optional<std::string> lastName = std::nullopt,
63 Locale locale = Locale::en_US);
82FAKER_CXX_EXPORT std::string
email(std::optional<std::string> firstName = std::nullopt,
83 std::optional<std::string> lastName = std::nullopt,
84 std::optional<std::string> emailHost = std::nullopt, Locale locale = Locale::en_US);
98FAKER_CXX_EXPORT std::string
exampleEmail(std::optional<std::string> firstName = std::nullopt,
99 std::optional<std::string> lastName = std::nullopt,
100 Locale locale = Locale::en_US);
145FAKER_CXX_EXPORT std::string_view
emoji(std::optional<EmojiType> type = std::nullopt);
194FAKER_CXX_EXPORT
unsigned httpStatusCode(std::optional<HttpResponseType> responseType = std::nullopt);
227FAKER_CXX_EXPORT std::string_view
httpMediaType(Locale locale = Locale::en_US);
260FAKER_CXX_EXPORT std::string
ipv4(
const std::array<unsigned int, 4>& baseIpv4Address,
261 const std::array<unsigned int, 4>& generationMask);
272FAKER_CXX_EXPORT std::string
ipv6();
285FAKER_CXX_EXPORT std::string
mac(
const std::string& sep =
":");
296FAKER_CXX_EXPORT
unsigned port();
320FAKER_CXX_EXPORT std::string
domainName(Locale locale = Locale::en_US);
342FAKER_CXX_EXPORT std::string_view
domainSuffix(Locale locale = Locale::en_US);
376FAKER_CXX_EXPORT std::string
377getJWTToken(
const std::optional<std::map<std::string, std::string>>& header = std::nullopt,
378 const std::optional<std::map<std::string, std::string>>& payload = std::nullopt,
379 const std::optional<std::string>& refDate = std::nullopt);
FAKER_CXX_EXPORT std::string getJWTToken(const std::optional< std::map< std::string, std::string > > &header=std::nullopt, const std::optional< std::map< std::string, std::string > > &payload=std::nullopt, const std::optional< std::string > &refDate=std::nullopt)
Generates a JSON Web Token (JWT).
FAKER_CXX_EXPORT std::string username(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, Locale locale=Locale::en_US)
Generates a username using the given person's name as base.
FAKER_CXX_EXPORT std::string email(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, std::optional< std::string > emailHost=std::nullopt, Locale locale=Locale::en_US)
Generates an email address using the given person's name as base.
FAKER_CXX_EXPORT std::string exampleEmail(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, Locale locale=Locale::en_US)
Generates an email address using the given person's name as base with example domain.