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

Functions

FAKER_CXX_EXPORT std::string_view gameTitle (Locale locale=Locale::en_US)
 Returns a random video game name.
 
FAKER_CXX_EXPORT std::string_view genre (Locale locale=Locale::en_US)
 Returns a random video game genre.
 
FAKER_CXX_EXPORT std::string_view platform (Locale locale=Locale::en_US)
 Returns a random video game platform.
 
FAKER_CXX_EXPORT std::string_view studioName (Locale locale=Locale::en_US)
 Returns a random video game studio name.
 

Function Documentation

◆ gameTitle()

FAKER_CXX_EXPORT std::string_view faker::videogame::gameTitle ( Locale locale = Locale::en_US)

Returns a random video game name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Video game name.
faker::videogame::gameTitle() // "Rayman Arena"
FAKER_CXX_EXPORT std::string_view gameTitle(Locale locale=Locale::en_US)
Returns a random video game name.

◆ genre()

FAKER_CXX_EXPORT std::string_view faker::videogame::genre ( Locale locale = Locale::en_US)

Returns a random video game genre.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Video game genre.
faker::videogame::genre() // "Platformer"
FAKER_CXX_EXPORT std::string_view genre(Locale locale=Locale::en_US)
Returns a random video game genre.

◆ platform()

FAKER_CXX_EXPORT std::string_view faker::videogame::platform ( Locale locale = Locale::en_US)

Returns a random video game platform.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Platform.
faker::videogame::platform() // "Playstation 5"
FAKER_CXX_EXPORT std::string_view platform(Locale locale=Locale::en_US)
Returns a random video game platform.

◆ studioName()

FAKER_CXX_EXPORT std::string_view faker::videogame::studioName ( Locale locale = Locale::en_US)

Returns a random video game studio name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Studio name.
faker::videogame::studioName() // "Activision Blizzard"
FAKER_CXX_EXPORT std::string_view studioName(Locale locale=Locale::en_US)
Returns a random video game studio name.