Faker C++
Loading...
Searching...
No Matches
Word.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include "faker-cxx/Export.h"
Include dependency graph for Word.h:

Go to the source code of this file.

Namespaces

namespace  faker
 
namespace  faker::word
 

Functions

FAKER_CXX_EXPORT std::string_view faker::word::sample (std::optional< unsigned > length=std::nullopt)
 Returns a random .
 
FAKER_CXX_EXPORT std::string faker::word::words (unsigned numberOfWords=1)
 Returns a string containing a number of space separated random words.
 
FAKER_CXX_EXPORT std::string_view faker::word::adjective (std::optional< unsigned > length=std::nullopt)
 Returns a random adjective.
 
FAKER_CXX_EXPORT std::string_view faker::word::adverb (std::optional< unsigned > length=std::nullopt)
 Returns a random adverb.
 
FAKER_CXX_EXPORT std::string_view faker::word::conjunction (std::optional< unsigned > length=std::nullopt)
 Returns a random conjunction.
 
FAKER_CXX_EXPORT std::string_view faker::word::interjection (std::optional< unsigned > length=std::nullopt)
 Returns a random interjection.
 
FAKER_CXX_EXPORT std::string_view faker::word::noun (std::optional< unsigned > length=std::nullopt)
 Returns a random noun.
 
FAKER_CXX_EXPORT std::string_view faker::word::preposition (std::optional< unsigned > length=std::nullopt)
 Returns a random preposition.
 
FAKER_CXX_EXPORT std::string_view faker::word::verb (std::optional< unsigned > length=std::nullopt)
 Returns a random verb.