Faker C++
Toggle main menu visibility
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
8
namespace
faker::lorem
9
{
23
FAKER_CXX_EXPORT std::vector<std::string_view>
wordVector
(
int
numberOfWords = 3);
24
34
FAKER_CXX_EXPORT std::string_view
word
();
35
47
FAKER_CXX_EXPORT std::string
words
(
unsigned
numberOfWords = 3);
48
61
FAKER_CXX_EXPORT std::string
sentence
(
unsigned
minNumberOfWords = 3,
unsigned
maxNumberOfWords = 10);
62
76
FAKER_CXX_EXPORT std::string
sentences
(
unsigned
minNumberOfSentences = 2,
unsigned
maxNumberOfSentences = 6);
77
89
FAKER_CXX_EXPORT std::string
slug
(
unsigned
numberOfWords = 3);
90
103
FAKER_CXX_EXPORT std::string
paragraph
(
unsigned
minNumberOfSentences = 2,
unsigned
maxNumberOfSentences = 6);
104
120
FAKER_CXX_EXPORT std::string
paragraphs
(
unsigned
minNumberOfParagraphs = 2,
unsigned
maxNumberOfParagraphs = 4);
121
}
faker::lorem
Definition
lorem.h:9
faker::lorem::slug
FAKER_CXX_EXPORT std::string slug(unsigned numberOfWords=3)
Generates a slugified text consisting of the given number of hyphen separated words.
faker::lorem::paragraphs
FAKER_CXX_EXPORT std::string paragraphs(unsigned minNumberOfParagraphs=2, unsigned maxNumberOfParagraphs=4)
Returns a random lorem paragraphs.
faker::lorem::sentences
FAKER_CXX_EXPORT std::string sentences(unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
Returns a random lorem sentences.
faker::lorem::sentence
FAKER_CXX_EXPORT std::string sentence(unsigned minNumberOfWords=3, unsigned maxNumberOfWords=10)
Returns a random lorem sentence.
faker::lorem::wordVector
FAKER_CXX_EXPORT std::vector< std::string_view > wordVector(int numberOfWords=3)
Generates and returns a dynamic array consisting of random lorem words.
faker::lorem::paragraph
FAKER_CXX_EXPORT std::string paragraph(unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6)
Returns a random lorem paragraph.
faker::lorem::words
FAKER_CXX_EXPORT std::string words(unsigned numberOfWords=3)
Returns a random lorem words.
faker::lorem::word
FAKER_CXX_EXPORT std::string_view word()
Returns a random lorem word.
include
faker-cxx
lorem.h
Generated by
1.17.0