Faker C++
Loading...
Searching...
No Matches
Lorem.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include "faker-cxx/Export.h"
5
6namespace faker::lorem
7{
17 FAKER_CXX_EXPORT std::string_view word();
18
30 FAKER_CXX_EXPORT std::string words(unsigned numberOfWords = 3);
31
44 FAKER_CXX_EXPORT std::string sentence(unsigned minNumberOfWords = 3, unsigned maxNumberOfWords = 10);
45
58 FAKER_CXX_EXPORT std::string sentences(unsigned minNumberOfSentences = 2, unsigned maxNumberOfSentences = 6);
59
71 FAKER_CXX_EXPORT std::string slug(unsigned numberOfWords = 3);
72
85 FAKER_CXX_EXPORT std::string paragraph(unsigned minNumberOfSentences = 2, unsigned maxNumberOfSentences = 6);
86
102 FAKER_CXX_EXPORT std::string paragraphs(unsigned minNumberOfParagraphs = 2, unsigned maxNumberOfParagraphs = 4);
103}
Definition Lorem.h:7
FAKER_CXX_EXPORT std::string slug(unsigned numberOfWords=3)
Generates a slugified text consisting of the given number of hyphen separated words.
FAKER_CXX_EXPORT std::string paragraphs(unsigned minNumberOfParagraphs=2, unsigned maxNumberOfParagraphs=4)
Returns a random lorem paragraphs.
FAKER_CXX_EXPORT std::string sentences(unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
Returns a random lorem sentences.
FAKER_CXX_EXPORT std::string sentence(unsigned minNumberOfWords=3, unsigned maxNumberOfWords=10)
Returns a random lorem sentence.
FAKER_CXX_EXPORT std::string paragraph(unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
Returns a random lorem paragraph.
FAKER_CXX_EXPORT std::string words(unsigned numberOfWords=3)
Returns a random lorem words.
FAKER_CXX_EXPORT std::string_view word()
Returns a random lorem word.