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

Functions

FAKER_CXX_EXPORT std::string_view artist (Locale locale=Locale::en_US)
 Returns a random artist.
 
FAKER_CXX_EXPORT std::string_view genre (Locale locale=Locale::en_US)
 Returns a random music genre.
 
FAKER_CXX_EXPORT std::string_view songName (Locale locale=Locale::en_US)
 Returns a random song name.
 

Function Documentation

◆ artist()

FAKER_CXX_EXPORT std::string_view faker::music::artist ( Locale locale = Locale::en_US)

Returns a random artist.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Artist.
faker::music::artist() // "Nirvana"
FAKER_CXX_EXPORT std::string_view artist(Locale locale=Locale::en_US)
Returns a random artist.

◆ genre()

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

Returns a random music genre.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Music genre.
FAKER_CXX_EXPORT std::string_view genre(Locale locale=Locale::en_US)
Returns a random music genre.

◆ songName()

FAKER_CXX_EXPORT std::string_view faker::music::songName ( Locale locale = Locale::en_US)

Returns a random song name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Song name.
faker::music::songName() // "Light My Fire"
FAKER_CXX_EXPORT std::string_view songName(Locale locale=Locale::en_US)
Returns a random song name.