Faker C++
Loading...
Searching...
No Matches
person.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5#include <string_view>
6
7#include "faker-cxx/export.h"
8#include "types/locale.h"
9
11{
12enum class Sex
13{
14 Female,
15 Male,
16};
17
32FAKER_CXX_EXPORT std::string_view firstName(Locale locale = Locale::en_US, std::optional<Sex> sex = std::nullopt);
33
46FAKER_CXX_EXPORT std::string_view lastName(Locale locale = Locale::en_US, std::optional<Sex> sex = std::nullopt);
47
62FAKER_CXX_EXPORT std::string fullName(Locale locale = Locale::en_US, std::optional<Sex> sex = std::nullopt);
63
78FAKER_CXX_EXPORT std::string_view prefix(Locale locale = Locale::en_US, std::optional<Sex> sex = std::nullopt);
79
92FAKER_CXX_EXPORT std::string_view suffix(Locale locale = Locale::en_US, std::optional<Sex> sex = std::nullopt);
93
103FAKER_CXX_EXPORT std::string bio();
104
117FAKER_CXX_EXPORT std::string_view sex(Locale locale = Locale::en_US);
118
128FAKER_CXX_EXPORT std::string_view gender();
129
139FAKER_CXX_EXPORT std::string jobTitle();
140
150FAKER_CXX_EXPORT std::string_view jobDescriptor();
151
161FAKER_CXX_EXPORT std::string_view jobArea();
162
172FAKER_CXX_EXPORT std::string_view jobType();
173
183FAKER_CXX_EXPORT std::string_view hobby();
184
194FAKER_CXX_EXPORT std::string_view language();
195
205FAKER_CXX_EXPORT std::string_view nationality();
206
219FAKER_CXX_EXPORT std::string ssn(Locale locale = Locale::en_US);
220
230FAKER_CXX_EXPORT std::string_view westernZodiac();
231
241FAKER_CXX_EXPORT std::string_view chineseZodiac();
242
254FAKER_CXX_EXPORT std::string passport(Locale locale = Locale::en_US);
255}
Definition person.h:11
FAKER_CXX_EXPORT std::string_view suffix(Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
Returns a random name suffix.
FAKER_CXX_EXPORT std::string_view jobType()
Returns a random job type.
FAKER_CXX_EXPORT std::string_view jobDescriptor()
Returns a random job descriptor.
FAKER_CXX_EXPORT std::string bio()
Returns a random bio.
FAKER_CXX_EXPORT std::string_view chineseZodiac()
Returns a random Chinese Zodiac.
FAKER_CXX_EXPORT std::string fullName(Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
Returns a random full name.
FAKER_CXX_EXPORT std::string_view firstName(Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
Returns a random first name.
FAKER_CXX_EXPORT std::string_view sex(Locale locale=Locale::en_US)
Returns a random sex of the locale passed.
FAKER_CXX_EXPORT std::string passport(Locale locale=Locale::en_US)
Returns a random passport number from a given country.
FAKER_CXX_EXPORT std::string_view prefix(Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
Returns a random name prefix.
FAKER_CXX_EXPORT std::string_view westernZodiac()
Returns a random Western Zodiac.
FAKER_CXX_EXPORT std::string ssn(Locale locale=Locale::en_US)
Returns a random SSN.
FAKER_CXX_EXPORT std::string_view language()
Returns a random language.
FAKER_CXX_EXPORT std::string_view gender()
Returns a random gender.
FAKER_CXX_EXPORT std::string_view jobArea()
Returns a random job area.
FAKER_CXX_EXPORT std::string_view hobby()
Returns a random hobby.
Sex
Definition person.h:13
FAKER_CXX_EXPORT std::string_view nationality()
Returns a random nationality.
FAKER_CXX_EXPORT std::string jobTitle()
Returns a random job title.
FAKER_CXX_EXPORT std::string_view lastName(Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
Returns a random last name.