Faker C++
|
Enumerations | |
enum class | Sex { Female , Male } |
Functions | |
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 | lastName (Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt) |
Returns a random last name. | |
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 | prefix (Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt) |
Returns a random name prefix. | |
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 | bio () |
Returns a random bio. | |
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_view | gender () |
Returns a random gender. | |
FAKER_CXX_EXPORT std::string | jobTitle () |
Returns a random job title. | |
FAKER_CXX_EXPORT std::string_view | jobDescriptor () |
Returns a random job descriptor. | |
FAKER_CXX_EXPORT std::string_view | jobArea () |
Returns a random job area. | |
FAKER_CXX_EXPORT std::string_view | jobType () |
Returns a random job type. | |
FAKER_CXX_EXPORT std::string_view | hobby () |
Returns a random hobby. | |
FAKER_CXX_EXPORT std::string_view | language () |
Returns a random language. | |
FAKER_CXX_EXPORT std::string_view | nationality () |
Returns a random nationality. | |
FAKER_CXX_EXPORT std::string | ssn (Locale locale=Locale::en_US) |
Returns a random SSN. | |
FAKER_CXX_EXPORT std::string_view | westernZodiac () |
Returns a random Western Zodiac. | |
FAKER_CXX_EXPORT std::string_view | chineseZodiac () |
Returns a random Chinese Zodiac. | |
FAKER_CXX_EXPORT std::string | passport (Locale locale=Locale::en_US) |
Returns a random passport number from a given country. | |
|
strong |
FAKER_CXX_EXPORT std::string faker::person::bio | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::chineseZodiac | ( | ) |
Returns a random Chinese Zodiac.
FAKER_CXX_EXPORT std::string_view faker::person::firstName | ( | Locale | locale = Locale::en_US, |
std::optional< Sex > | sex = std::nullopt ) |
Returns a random first name.
locale | The locale. Defaults to `Locale::en_US`. |
sex | The optional sex to use. |
FAKER_CXX_EXPORT std::string faker::person::fullName | ( | Locale | locale = Locale::en_US, |
std::optional< Sex > | sex = std::nullopt ) |
Returns a random full name.
locale | The locale. Defaults to `Locale::en_US`. |
sex | The optional sex to use. |
FAKER_CXX_EXPORT std::string_view faker::person::gender | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::hobby | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::jobArea | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::jobDescriptor | ( | ) |
Returns a random job descriptor.
FAKER_CXX_EXPORT std::string faker::person::jobTitle | ( | ) |
Returns a random job title.
FAKER_CXX_EXPORT std::string_view faker::person::jobType | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::language | ( | ) |
FAKER_CXX_EXPORT std::string_view faker::person::lastName | ( | Locale | locale = Locale::en_US, |
std::optional< Sex > | sex = std::nullopt ) |
Returns a random last name.
locale | The locale. Defaults to `Locale::en_US`. |
sex | The optional sex to use. |
FAKER_CXX_EXPORT std::string_view faker::person::nationality | ( | ) |
Returns a random nationality.
FAKER_CXX_EXPORT std::string faker::person::passport | ( | Locale | locale = Locale::en_US | ) |
Returns a random passport number from a given country.
locale | The optional locale to use. Defaults to `Locale::en_US`. |
FAKER_CXX_EXPORT std::string_view faker::person::prefix | ( | Locale | locale = Locale::en_US, |
std::optional< Sex > | sex = std::nullopt ) |
Returns a random name prefix.
locale | The locale. Defaults to `Locale::en_US`. |
sex | The optional sex to use. |
FAKER_CXX_EXPORT std::string_view faker::person::sex | ( | Locale | locale = Locale::en_US | ) |
Returns a random sex of the locale passed.
locale | The locale. Defaults to `Locale::en_US`. |
FAKER_CXX_EXPORT std::string faker::person::ssn | ( | Locale | locale = Locale::en_US | ) |
Returns a random SSN.
locale | The optional locale to use. Defaults to `Locale::en_US`. |
FAKER_CXX_EXPORT std::string_view faker::person::suffix | ( | Locale | locale = Locale::en_US, |
std::optional< Sex > | sex = std::nullopt ) |
Returns a random name suffix.
locale | The locale. Defaults to `Locale::en_US`. |
sex | The optional sex to use. |
FAKER_CXX_EXPORT std::string_view faker::person::westernZodiac | ( | ) |
Returns a random Western Zodiac.