Faker C++
Loading...
Searching...
No Matches
Word.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <string>
5#include <string_view>
6#include "faker-cxx/Export.h"
7
8namespace faker::word
9{
23FAKER_CXX_EXPORT std::string_view sample(std::optional<unsigned> length = std::nullopt);
24
37FAKER_CXX_EXPORT std::string words(unsigned numberOfWords = 1);
38
52FAKER_CXX_EXPORT std::string_view adjective(std::optional<unsigned> length = std::nullopt);
53
67FAKER_CXX_EXPORT std::string_view adverb(std::optional<unsigned> length = std::nullopt);
68
82FAKER_CXX_EXPORT std::string_view conjunction(std::optional<unsigned> length = std::nullopt);
83
97FAKER_CXX_EXPORT std::string_view interjection(std::optional<unsigned> length = std::nullopt);
98
112FAKER_CXX_EXPORT std::string_view noun(std::optional<unsigned> length = std::nullopt);
113
127FAKER_CXX_EXPORT std::string_view preposition(std::optional<unsigned> length = std::nullopt);
128
142FAKER_CXX_EXPORT std::string_view verb(std::optional<unsigned> length = std::nullopt);
143}
Definition Word.h:9
FAKER_CXX_EXPORT std::string_view verb(std::optional< unsigned > length=std::nullopt)
Returns a random verb.
FAKER_CXX_EXPORT std::string_view adverb(std::optional< unsigned > length=std::nullopt)
Returns a random adverb.
FAKER_CXX_EXPORT std::string words(unsigned numberOfWords=1)
Returns a string containing a number of space separated random words.
FAKER_CXX_EXPORT std::string_view conjunction(std::optional< unsigned > length=std::nullopt)
Returns a random conjunction.
FAKER_CXX_EXPORT std::string_view sample(std::optional< unsigned > length=std::nullopt)
Returns a random .
FAKER_CXX_EXPORT std::string_view interjection(std::optional< unsigned > length=std::nullopt)
Returns a random interjection.
FAKER_CXX_EXPORT std::string_view noun(std::optional< unsigned > length=std::nullopt)
Returns a random noun.
FAKER_CXX_EXPORT std::string_view preposition(std::optional< unsigned > length=std::nullopt)
Returns a random preposition.
FAKER_CXX_EXPORT std::string_view adjective(std::optional< unsigned > length=std::nullopt)
Returns a random adjective.