Faker C++
Loading...
Searching...
No Matches
lorem.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <vector>
5
6#include "faker-cxx/export.h"
7
8namespace faker::lorem
9{
23FAKER_CXX_EXPORT std::vector<std::string_view> wordVector(int numberOfWords = 3);
24
34FAKER_CXX_EXPORT std::string_view word();
35
47FAKER_CXX_EXPORT std::string words(unsigned numberOfWords = 3);
48
61FAKER_CXX_EXPORT std::string sentence(unsigned minNumberOfWords = 3, unsigned maxNumberOfWords = 10);
62
76FAKER_CXX_EXPORT std::string sentences(unsigned minNumberOfSentences = 2, unsigned maxNumberOfSentences = 6);
77
89FAKER_CXX_EXPORT std::string slug(unsigned numberOfWords = 3);
90
103FAKER_CXX_EXPORT std::string paragraph(unsigned minNumberOfSentences = 2, unsigned maxNumberOfSentences = 6);
104
120FAKER_CXX_EXPORT std::string paragraphs(unsigned minNumberOfParagraphs = 2, unsigned maxNumberOfParagraphs = 4);
121}
Definition lorem.h:9
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::vector< std::string_view > wordVector(int numberOfWords=3)
Generates and returns a dynamic array consisting of random lorem words.
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.