Faker C++
|
Functions | |
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_view | word () |
Returns a random lorem word. | |
FAKER_CXX_EXPORT std::string | words (unsigned numberOfWords=3) |
Returns a random lorem words. | |
FAKER_CXX_EXPORT std::string | sentence (unsigned minNumberOfWords=3, unsigned maxNumberOfWords=10) |
Returns a random lorem sentence. | |
FAKER_CXX_EXPORT std::string | sentences (unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6) |
Returns a random lorem sentences. | |
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 | paragraph (unsigned minNumberOfSentences=2, unsigned maxNumberOfSentences=6) |
Returns a random lorem paragraph. | |
FAKER_CXX_EXPORT std::string | paragraphs (unsigned minNumberOfParagraphs=2, unsigned maxNumberOfParagraphs=4) |
Returns a random lorem paragraphs. | |
FAKER_CXX_EXPORT std::string faker::lorem::paragraph | ( | unsigned | minNumberOfSentences = 2, |
unsigned | maxNumberOfSentences = 6 ) |
Returns a random lorem paragraph.
minNumberOfSentences | The minimum number of sentences to generate. Defaults to `2`. |
maxNumberOfSentences | The maximum number of sentences to generate. Defaults to `6`. |
FAKER_CXX_EXPORT std::string faker::lorem::paragraphs | ( | unsigned | minNumberOfParagraphs = 2, |
unsigned | maxNumberOfParagraphs = 4 ) |
Returns a random lorem paragraphs.
minNumberOfParagraphs | The minimum number of paragraphs to generate. Defaults to `2`. |
maxNumberOfParagraphs | The maximum number of paragraphs to generate. Defaults to `4`. |
FAKER_CXX_EXPORT std::string faker::lorem::sentence | ( | unsigned | minNumberOfWords = 3, |
unsigned | maxNumberOfWords = 10 ) |
Returns a random lorem sentence.
minNumberOfWords | The minimum number of words to generate. Defaults to `3`. |
maxNumberOfWords | The maximum number of words to generate. Defaults to `10`. |
FAKER_CXX_EXPORT std::string faker::lorem::sentences | ( | unsigned | minNumberOfSentences = 2, |
unsigned | maxNumberOfSentences = 6 ) |
Returns a random lorem sentences.
minNumberOfSentences | The minimum number of sentences to generate. Defaults to `2`. |
maxNumberOfSentences | The maximum number of sentences to generate. Defaults to `6`. |
FAKER_CXX_EXPORT std::string faker::lorem::slug | ( | unsigned | numberOfWords = 3 | ) |
Generates a slugified text consisting of the given number of hyphen separated words.
numberOfWords | The number of words. Defaults to `3`. |
FAKER_CXX_EXPORT std::string_view faker::lorem::word | ( | ) |
FAKER_CXX_EXPORT std::string faker::lorem::words | ( | unsigned | numberOfWords = 3 | ) |
Returns a random lorem words.
numberOfWords | The number of words. Defaults to `3`. |
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.
numberOfWords | The number of elements in the vector which is returned |
std::invalid_argument | if the numberOfWords is less than 0 |