Faker C++
Loading...
Searching...
No Matches
lorem.h File Reference
#include <string>
#include <vector>
#include "faker-cxx/export.h"
Include dependency graph for lorem.h:

Go to the source code of this file.

Namespaces

namespace  faker
 
namespace  faker::lorem
 

Functions

FAKER_CXX_EXPORT std::vector< std::string_view > faker::lorem::wordVector (int numberOfWords=3)
 Generates and returns a dynamic array consisting of random lorem words.
 
FAKER_CXX_EXPORT std::string_view faker::lorem::word ()
 Returns a random lorem word.
 
FAKER_CXX_EXPORT std::string faker::lorem::words (unsigned numberOfWords=3)
 Returns a random lorem words.
 
FAKER_CXX_EXPORT std::string faker::lorem::sentence (unsigned minNumberOfWords=3, unsigned maxNumberOfWords=10)
 Returns a random lorem sentence.
 
FAKER_CXX_EXPORT std::string faker::lorem::sentences (unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
 Returns a random lorem sentences.
 
FAKER_CXX_EXPORT std::string faker::lorem::slug (unsigned numberOfWords=3)
 Generates a slugified text consisting of the given number of hyphen separated words.
 
FAKER_CXX_EXPORT std::string faker::lorem::paragraph (unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
 Returns a random lorem paragraph.
 
FAKER_CXX_EXPORT std::string faker::lorem::paragraphs (unsigned minNumberOfParagraphs=2, unsigned maxNumberOfParagraphs=4)
 Returns a random lorem paragraphs.