Faker C++
Loading...
Searching...
No Matches
person.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include "faker-cxx/export.h"
#include "types/locale.h"
Include dependency graph for person.h:

Go to the source code of this file.

Namespaces

namespace  faker
 
namespace  faker::person
 

Enumerations

enum class  faker::person::Sex { faker::person::Female , faker::person::Male }
 

Functions

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.
 
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.
 
FAKER_CXX_EXPORT std::string faker::person::fullName (Locale locale=Locale::en_US, std::optional< Sex > sex=std::nullopt)
 Returns a random full name.
 
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.
 
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.
 
FAKER_CXX_EXPORT std::string faker::person::bio ()
 Returns a random bio.
 
FAKER_CXX_EXPORT std::string_view faker::person::sex (Locale locale=Locale::en_US)
 Returns a random sex of the locale passed.
 
FAKER_CXX_EXPORT std::string_view faker::person::gender ()
 Returns a random gender.
 
FAKER_CXX_EXPORT std::string faker::person::jobTitle ()
 Returns a random job title.
 
FAKER_CXX_EXPORT std::string_view faker::person::jobDescriptor ()
 Returns a random job descriptor.
 
FAKER_CXX_EXPORT std::string_view faker::person::jobArea ()
 Returns a random job area.
 
FAKER_CXX_EXPORT std::string_view faker::person::jobType ()
 Returns a random job type.
 
FAKER_CXX_EXPORT std::string_view faker::person::hobby ()
 Returns a random hobby.
 
FAKER_CXX_EXPORT std::string_view faker::person::language ()
 Returns a random language.
 
FAKER_CXX_EXPORT std::string_view faker::person::nationality ()
 Returns a random nationality.
 
FAKER_CXX_EXPORT std::string faker::person::ssn (Locale locale=Locale::en_US)
 Returns a random SSN.
 
FAKER_CXX_EXPORT std::string_view faker::person::westernZodiac ()
 Returns a random Western Zodiac.
 
FAKER_CXX_EXPORT std::string_view faker::person::chineseZodiac ()
 Returns a random Chinese Zodiac.
 
FAKER_CXX_EXPORT std::string faker::person::passport (Locale locale=Locale::en_US)
 Returns a random passport number from a given country.