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

Functions

FAKER_CXX_EXPORT std::string_view title (Locale locale=Locale::en_US)
 Returns a random book title.
 
FAKER_CXX_EXPORT std::string_view genre (Locale locale=Locale::en_US)
 Returns a random book genre.
 
FAKER_CXX_EXPORT std::string_view author (Locale locale=Locale::en_US)
 Returns a random book author.
 
FAKER_CXX_EXPORT std::string_view publisher (Locale locale=Locale::en_US)
 Returns a random book publisher.
 
FAKER_CXX_EXPORT std::string_view format (Locale locale=Locale::en_US)
 Returns format of book.
 
FAKER_CXX_EXPORT std::string_view series (Locale locale=Locale::en_US)
 returns a random book series
 

Function Documentation

◆ author()

FAKER_CXX_EXPORT std::string_view faker::book::author ( Locale locale = Locale::en_US)

Returns a random book author.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Book author.
faker::book::author() // "William Shakespeare"
FAKER_CXX_EXPORT std::string_view author(Locale locale=Locale::en_US)
Returns a random book author.

◆ format()

FAKER_CXX_EXPORT std::string_view faker::book::format ( Locale locale = Locale::en_US)

Returns format of book.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
BookFormat format of book
faker::book::format() // "Paperback"
FAKER_CXX_EXPORT std::string_view format(Locale locale=Locale::en_US)
Returns format of book.

◆ genre()

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

Returns a random book genre.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Book genre.
faker::book::genre() // "Fantasy"
FAKER_CXX_EXPORT std::string_view genre(Locale locale=Locale::en_US)
Returns a random book genre.

◆ publisher()

FAKER_CXX_EXPORT std::string_view faker::book::publisher ( Locale locale = Locale::en_US)

Returns a random book publisher.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Book publisher.
faker::book::publisher() // "Addison-Wesley"
FAKER_CXX_EXPORT std::string_view publisher(Locale locale=Locale::en_US)
Returns a random book publisher.

◆ series()

FAKER_CXX_EXPORT std::string_view faker::book::series ( Locale locale = Locale::en_US)

returns a random book series

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
std::string_view book series
faker::book::series() // "Harry Potter"
FAKER_CXX_EXPORT std::string_view series(Locale locale=Locale::en_US)
returns a random book series

◆ title()

FAKER_CXX_EXPORT std::string_view faker::book::title ( Locale locale = Locale::en_US)

Returns a random book title.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Book title.
faker::book::title() // "Romeo and Juliet"
FAKER_CXX_EXPORT std::string_view title(Locale locale=Locale::en_US)
Returns a random book title.