-
-
-
-
59 static std::string
username(std::optional<std::string> firstName = std::nullopt,
-
60 std::optional<std::string> lastName = std::nullopt, Country country = Country::Usa);
-
-
79 static std::string
email(std::optional<std::string> firstName = std::nullopt,
-
80 std::optional<std::string> lastName = std::nullopt,
-
81 std::optional<std::string> emailHost = std::nullopt);
-
-
95 static std::string
exampleEmail(std::optional<std::string> firstName = std::nullopt,
-
96 std::optional<std::string> lastName = std::nullopt);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
139 static std::string
emoji(std::optional<EmojiType> type = std::nullopt);
-
-
-
-
-
-
-
-
188 static unsigned httpStatusCode(std::optional<HttpResponseType> responseType = std::nullopt);
-
-
-
-
-
-
-
-
235 static std::string
ipv4(IPv4Class ipv4class = IPv4Class::C);
-
-
254 static std::string
ipv4(
const std::array<unsigned int, 4>& baseIpv4Address,
-
255 const std::array<unsigned int, 4>& generationMask);
-
-
-
-
279 static std::string
mac(
const std::string& sep =
":");
-
-
-
-
303 static std::string
url(WebProtocol webProtocol = WebProtocol::Https);
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
60 static std::string
username(std::optional<std::string> firstName = std::nullopt,
+
61 std::optional<std::string> lastName = std::nullopt, Country country = Country::Usa);
+
+
80 static std::string
email(std::optional<std::string> firstName = std::nullopt,
+
81 std::optional<std::string> lastName = std::nullopt,
+
82 std::optional<std::string> emailHost = std::nullopt);
+
+
96 static std::string
exampleEmail(std::optional<std::string> firstName = std::nullopt,
+
97 std::optional<std::string> lastName = std::nullopt);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
140 static std::string_view
emoji(std::optional<EmojiType> type = std::nullopt);
+
+
+
+
+
+
+
+
189 static unsigned httpStatusCode(std::optional<HttpResponseType> responseType = std::nullopt);
+
+
+
+
+
+
+
+
236 static std::string
ipv4(
const IPv4Class& ipv4class = IPv4Class::C);
+
+
255 static std::string
ipv4(
const std::array<unsigned int, 4>& baseIpv4Address,
+
256 const std::array<unsigned int, 4>& generationMask);
+
+
+
+
280 static std::string
mac(
const std::string& sep =
":");
+
+
+
+
304 static std::string
url(
const WebProtocol& webProtocol = WebProtocol::Https);
+
+
+
+
+
+
+
+
+
-
+
-
+
static std::string domainName()
Generates a random domain name.
-
static std::string httpMethod()
Generates a random http method name.
+
static std::string_view domainSuffix()
Generates a random domain suffix.
static std::string domainWord()
Generates a random domain word.
-
static std::string httpResponseHeader()
Generates a random http response header.
-
static std::string domainSuffix()
Generates a random domain suffix.
static std::string anonymousUsername(unsigned maxLength)
Generates a random username.
static std::string ipv4(const std::array< unsigned int, 4 > &baseIpv4Address, const std::array< unsigned int, 4 > &generationMask)
Returns a string containing randomized ipv4 address based on given base address and mask.
-
static std::string url(WebProtocol webProtocol=WebProtocol::Https)
Generates a random url.
-
static std::string ipv4(IPv4Class ipv4class=IPv4Class::C)
Returns a string containing randomized ipv4 address of the given class.
+
static std::string_view protocol()
Returns a random web protocol. Either `http` or `https`.
+
static std::string_view httpResponseHeader()
Generates a random http response header.
+
static std::string_view emoji(std::optional< EmojiType > type=std::nullopt)
Returns a random emoji.
static bool checkIfEmojiIsValid(const std::string &emojiToCheck)
Verify that a given emoji is valid.
+
static std::string url(const WebProtocol &webProtocol=WebProtocol::Https)
Generates a random url.
static std::string exampleEmail(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt)
Generates an email address using the given person's name as base with example domain.
-
static std::string password(int length=15, PasswordOptions options={})
Generates a random password-like string. Do not use this method for generating actual passwords for u...
+
static std::string_view httpRequestHeader()
Generates a random http request header.
static unsigned port()
Generates a random port.
-
static std::string emoji(std::optional< EmojiType > type=std::nullopt)
Returns a random emoji.
-
static std::string httpMediaType()
Generates a random http media type.
-
static std::string httpRequestHeader()
Generates a random http request header.
+
static std::string_view httpMediaType()
Generates a random http media type.
+
static std::string_view httpMethod()
Generates a random http method name.
static std::string ipv6()
Returns a string containing randomized ipv6 address.
static unsigned httpStatusCode(std::optional< HttpResponseType > responseType=std::nullopt)
Returns a random http status code.
static std::string username(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, Country country=Country::Usa)
Generates a username using the given person's name as base.
static std::string email(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, std::optional< std::string > emailHost=std::nullopt)
Generates an email address using the given person's name as base.
+
static std::string password(int length=15, const PasswordOptions &options={})
Generates a random password-like string. Do not use this method for generating actual passwords for u...
static std::string mac(const std::string &sep=":")
Returns a generated random mac address.
-
static std::string protocol()
Returns a random web protocol. Either `http` or `https`.
+
static std::string ipv4(const IPv4Class &ipv4class=IPv4Class::C)
Returns a string containing randomized ipv4 address of the given class.
-
+