Faker C++
Loading...
Searching...
No Matches
faker::sport Namespace Reference

Functions

FAKER_CXX_EXPORT std::string_view sportName (Locale locale=Locale::en_US)
 Returns a random sport.
 
FAKER_CXX_EXPORT std::string_view soccerTeam (Locale locale=Locale::en_US)
 Returns a random soccer team.
 
FAKER_CXX_EXPORT std::string_view maleAthlete (Locale locale=Locale::en_US)
 Returns a random male athlete.
 
FAKER_CXX_EXPORT std::string_view femaleAthlete (Locale locale=Locale::en_US)
 Returns a random female athlete.
 
FAKER_CXX_EXPORT std::string_view sportEvent (Locale locale=Locale::en_US)
 Returns a random Sport Event.
 

Function Documentation

◆ femaleAthlete()

FAKER_CXX_EXPORT std::string_view faker::sport::femaleAthlete ( Locale locale = Locale::en_US)

Returns a random female athlete.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Female athlete.
faker::sport::femaleAthlete() // "Serena Williams"
FAKER_CXX_EXPORT std::string_view femaleAthlete(Locale locale=Locale::en_US)
Returns a random female athlete.

◆ maleAthlete()

FAKER_CXX_EXPORT std::string_view faker::sport::maleAthlete ( Locale locale = Locale::en_US)

Returns a random male athlete.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Male athlete.
faker::sport::maleAthlete() // "Cristiano Ronaldo"
FAKER_CXX_EXPORT std::string_view maleAthlete(Locale locale=Locale::en_US)
Returns a random male athlete.

◆ soccerTeam()

FAKER_CXX_EXPORT std::string_view faker::sport::soccerTeam ( Locale locale = Locale::en_US)

Returns a random soccer team.

Returns
Coccer team.
Parameters
localeThe locale. Defaults to `Locale::en_US`.
faker::sport::soccerTeam() // "Manchester United"
FAKER_CXX_EXPORT std::string_view soccerTeam(Locale locale=Locale::en_US)
Returns a random soccer team.

◆ sportEvent()

FAKER_CXX_EXPORT std::string_view faker::sport::sportEvent ( Locale locale = Locale::en_US)

Returns a random Sport Event.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Sport Event.
faker::sport::sportEvent() // "Super Bowl"
FAKER_CXX_EXPORT std::string_view sportEvent(Locale locale=Locale::en_US)
Returns a random Sport Event.

◆ sportName()

FAKER_CXX_EXPORT std::string_view faker::sport::sportName ( Locale locale = Locale::en_US)

Returns a random sport.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Sport.
faker::sport::sport() // "football"