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

Functions

FAKER_CXX_EXPORT std::string_view alcoholicBeverage (Locale locale=Locale::en_US)
 Returns a random alcoholic beverage name.
 
FAKER_CXX_EXPORT std::string_view grain (Locale locale=Locale::en_US)
 Returns a random grain measurement.
 
FAKER_CXX_EXPORT std::string_view milkProduct (Locale locale=Locale::en_US)
 Returns a random milk product's name.
 
FAKER_CXX_EXPORT std::string_view fruit (Locale locale=Locale::en_US)
 Returns a random fruit's name.
 
FAKER_CXX_EXPORT std::string_view meat (Locale locale=Locale::en_US)
 Returns a random meat's name.
 
FAKER_CXX_EXPORT std::string_view seafood (Locale locale=Locale::en_US)
 Returns a random seafood's name.
 
FAKER_CXX_EXPORT std::string_view vegetable (Locale locale=Locale::en_US)
 Returns a random vegetable's name.
 
FAKER_CXX_EXPORT std::string_view oil (Locale locale=Locale::en_US)
 Returns a random oil's name.
 
FAKER_CXX_EXPORT std::string_view nut (Locale locale=Locale::en_US)
 Returns a random nut's name.
 
FAKER_CXX_EXPORT std::string_view seed (Locale locale=Locale::en_US)
 Returns a random seed's name.
 
FAKER_CXX_EXPORT std::string_view sugarProduct (Locale locale=Locale::en_US)
 Returns a random sugar product's name.
 
FAKER_CXX_EXPORT std::string_view nonalcoholicBeverage (Locale locale=Locale::en_US)
 Returns a random non-alcoholic beverage's name.
 
FAKER_CXX_EXPORT std::string_view dishName (Locale locale=Locale::en_US)
 Returns a random dish's name.
 
FAKER_CXX_EXPORT std::string_view foodCategory (Locale locale=Locale::en_US)
 Returns a random food categories' name.
 

Function Documentation

◆ alcoholicBeverage()

FAKER_CXX_EXPORT std::string_view faker::food::alcoholicBeverage ( Locale locale = Locale::en_US)

Returns a random alcoholic beverage name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Alcoholic beverage.
FAKER_CXX_EXPORT std::string_view alcoholicBeverage(Locale locale=Locale::en_US)
Returns a random alcoholic beverage name.

◆ dishName()

FAKER_CXX_EXPORT std::string_view faker::food::dishName ( Locale locale = Locale::en_US)

Returns a random dish's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Dish.
faker::food::dishName() // "beef wellington"
FAKER_CXX_EXPORT std::string_view dishName(Locale locale=Locale::en_US)
Returns a random dish's name.

◆ foodCategory()

FAKER_CXX_EXPORT std::string_view faker::food::foodCategory ( Locale locale = Locale::en_US)

Returns a random food categories' name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Food Category.
FAKER_CXX_EXPORT std::string_view foodCategory(Locale locale=Locale::en_US)
Returns a random food categories' name.

◆ fruit()

FAKER_CXX_EXPORT std::string_view faker::food::fruit ( Locale locale = Locale::en_US)

Returns a random fruit's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Fruit.
faker::food::fruit() // "apple"
FAKER_CXX_EXPORT std::string_view fruit(Locale locale=Locale::en_US)
Returns a random fruit's name.

◆ grain()

FAKER_CXX_EXPORT std::string_view faker::food::grain ( Locale locale = Locale::en_US)

Returns a random grain measurement.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Grain.
faker::food::grain() // "1 Lt"
FAKER_CXX_EXPORT std::string_view grain(Locale locale=Locale::en_US)
Returns a random grain measurement.

◆ meat()

FAKER_CXX_EXPORT std::string_view faker::food::meat ( Locale locale = Locale::en_US)

Returns a random meat's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Meat.
faker::food::meat() // "antrikot"
FAKER_CXX_EXPORT std::string_view meat(Locale locale=Locale::en_US)
Returns a random meat's name.

◆ milkProduct()

FAKER_CXX_EXPORT std::string_view faker::food::milkProduct ( Locale locale = Locale::en_US)

Returns a random milk product's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Milk product.
faker::food::milkProduct() // "mozzarella"
FAKER_CXX_EXPORT std::string_view milkProduct(Locale locale=Locale::en_US)
Returns a random milk product's name.

◆ nonalcoholicBeverage()

FAKER_CXX_EXPORT std::string_view faker::food::nonalcoholicBeverage ( Locale locale = Locale::en_US)

Returns a random non-alcoholic beverage's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Non-alcoholic Beverage.
FAKER_CXX_EXPORT std::string_view nonalcoholicBeverage(Locale locale=Locale::en_US)
Returns a random non-alcoholic beverage's name.

◆ nut()

FAKER_CXX_EXPORT std::string_view faker::food::nut ( Locale locale = Locale::en_US)

Returns a random nut's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Nuts.
faker::food::nut() // "walnut"
FAKER_CXX_EXPORT std::string_view nut(Locale locale=Locale::en_US)
Returns a random nut's name.

◆ oil()

FAKER_CXX_EXPORT std::string_view faker::food::oil ( Locale locale = Locale::en_US)

Returns a random oil's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Oil.
faker::food::oil() // "olive oil"
FAKER_CXX_EXPORT std::string_view oil(Locale locale=Locale::en_US)
Returns a random oil's name.

◆ seafood()

FAKER_CXX_EXPORT std::string_view faker::food::seafood ( Locale locale = Locale::en_US)

Returns a random seafood's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Seafood.
faker::food::seafood() // "lobster"
FAKER_CXX_EXPORT std::string_view seafood(Locale locale=Locale::en_US)
Returns a random seafood's name.

◆ seed()

FAKER_CXX_EXPORT std::string_view faker::food::seed ( Locale locale = Locale::en_US)

Returns a random seed's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Seed.
faker::food::seed() // "mozzarella"
FAKER_CXX_EXPORT std::string_view seed(Locale locale=Locale::en_US)
Returns a random seed's name.

◆ sugarProduct()

FAKER_CXX_EXPORT std::string_view faker::food::sugarProduct ( Locale locale = Locale::en_US)

Returns a random sugar product's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Sugar product.
faker::food::sugarProduct() // "honey harmony"
FAKER_CXX_EXPORT std::string_view sugarProduct(Locale locale=Locale::en_US)
Returns a random sugar product's name.

◆ vegetable()

FAKER_CXX_EXPORT std::string_view faker::food::vegetable ( Locale locale = Locale::en_US)

Returns a random vegetable's name.

Parameters
localeThe locale. Defaults to `Locale::en_US`.
Returns
Vegetable.
faker::food::vegetable() // "watermelon"
FAKER_CXX_EXPORT std::string_view vegetable(Locale locale=Locale::en_US)
Returns a random vegetable's name.