-
-
-
18FAKER_CXX_EXPORT std::string_view
word();
-
-
31FAKER_CXX_EXPORT std::string
words(
unsigned numberOfWords = 3);
-
-
45FAKER_CXX_EXPORT std::string
sentence(
unsigned minNumberOfWords = 3,
unsigned maxNumberOfWords = 10);
-
-
60FAKER_CXX_EXPORT std::string
sentences(
unsigned minNumberOfSentences = 2,
unsigned maxNumberOfSentences = 6);
-
-
73FAKER_CXX_EXPORT std::string
slug(
unsigned numberOfWords = 3);
-
-
87FAKER_CXX_EXPORT std::string
paragraph(
unsigned minNumberOfSentences = 2,
unsigned maxNumberOfSentences = 6);
-
-
104FAKER_CXX_EXPORT std::string
paragraphs(
unsigned minNumberOfParagraphs = 2,
unsigned maxNumberOfParagraphs = 4);
-
+
+
+
6#include "faker-cxx/export.h"
+
+
+
+
+
23FAKER_CXX_EXPORT std::vector<std::string_view>
wordVector(
int numberOfWords = 3);
+
+
34FAKER_CXX_EXPORT std::string_view
word();
+
+
47FAKER_CXX_EXPORT std::string
words(
unsigned numberOfWords = 3);
+
+
61FAKER_CXX_EXPORT std::string
sentence(
unsigned minNumberOfWords = 3,
unsigned maxNumberOfWords = 10);
+
+
76FAKER_CXX_EXPORT std::string
sentences(
unsigned minNumberOfSentences = 2,
unsigned maxNumberOfSentences = 6);
+
+
89FAKER_CXX_EXPORT std::string
slug(
unsigned numberOfWords = 3);
+
+
103FAKER_CXX_EXPORT std::string
paragraph(
unsigned minNumberOfSentences = 2,
unsigned maxNumberOfSentences = 6);
+
+
120FAKER_CXX_EXPORT std::string
paragraphs(
unsigned minNumberOfParagraphs = 2,
unsigned maxNumberOfParagraphs = 4);
+
-
+
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.
diff --git a/namespacefaker.js b/namespacefaker.js
index 4a336218..6c309603 100644
--- a/namespacefaker.js
+++ b/namespacefaker.js
@@ -184,7 +184,8 @@ var namespacefaker =
[ "sentences", "namespacefaker_1_1lorem.html#a375063dbea7caebda30aec4a3fd83775", null ],
[ "slug", "namespacefaker_1_1lorem.html#a083881e3fc0adfc974bfdb6d09bf8970", null ],
[ "word", "namespacefaker_1_1lorem.html#acfe2ea3b024c37b6ab92571404cd6ce4", null ],
- [ "words", "namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8", null ]
+ [ "words", "namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8", null ],
+ [ "wordVector", "namespacefaker_1_1lorem.html#a951c300e30e128875a132a95ce1f0686", null ]
] ],
[ "medicine", "namespacefaker_1_1medicine.html", [
[ "condition", "namespacefaker_1_1medicine.html#add3e653f246cc4dc44639728f84260f4", null ],
diff --git a/namespacefaker_1_1lorem.html b/namespacefaker_1_1lorem.html
index a22e8360..414fdb62 100644
--- a/namespacefaker_1_1lorem.html
+++ b/namespacefaker_1_1lorem.html
@@ -107,6 +107,9 @@
|
+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.
|
|
@@ -344,6 +347,40 @@
+◆ wordVector()
+
+
+
+
+
+ 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.
+
- Returns
- A std::vector consisting of random lorem words
+
- Parameters
-
+
+ numberOfWords | The number of elements in the vector which is returned |
+
+
+
+
- Exceptions
-
+
+ std::invalid_argument | if the numberOfWords is less than 0 |
+
+
+
+
+
FAKER_CXX_EXPORT std::vector< std::string_view > wordVector(int numberOfWords=3)
Generates and returns a dynamic array consisting of random lorem words.
+
+
+
diff --git a/namespacemembers_func_w.html b/namespacemembers_func_w.html
index 3ace56f7..3182408f 100644
--- a/namespacemembers_func_w.html
+++ b/namespacemembers_func_w.html
@@ -109,6 +109,7 @@ - w -
diff --git a/namespacemembers_w.html b/namespacemembers_w.html
index 2eee5677..0089cdc1 100644
--- a/namespacemembers_w.html
+++ b/namespacemembers_w.html
@@ -110,6 +110,7 @@ - w -
diff --git a/navtreedata.js b/navtreedata.js
index 844ddc5d..c9925995 100644
--- a/navtreedata.js
+++ b/navtreedata.js
@@ -54,10 +54,11 @@ var NAVTREEINDEX =
[
"airline_8h.html",
"internet_8h.html#a18bb9341e2a6b1745f93bb56acf973ea",
-"namespacefaker_1_1food.html#ab60ef0fff7acc273fd2317c469f9bd2a",
-"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6ddecd8ccd9f648d19dc02c7a566cb4f",
-"namespacemembers_func_p.html",
-"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacf4c7e1169281886577940e361854a84"
+"namespacefaker_1_1food.html#a7ab3916e74c59914e97c64334821e5c7",
+"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6cd50fb3091b0a9d3c1ac2cf52441390",
+"namespacemembers_func_n.html",
+"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacec565bb29200fdbe4ae533ec88cf124",
+"word_8h.html#af0f10fe34e975d361fd1d286d5073cc2"
];
var SYNCONMSG = 'click to disable panel synchronisation';
diff --git a/navtreeindex1.js b/navtreeindex1.js
index 05cb113a..df2023bc 100644
--- a/navtreeindex1.js
+++ b/navtreeindex1.js
@@ -61,6 +61,7 @@ var NAVTREEINDEX1 =
"lorem_8h.html#a2f5442a6de26bf6bd51ffbf1586cdbe3":[3,0,0,0,21,1],
"lorem_8h.html#a375063dbea7caebda30aec4a3fd83775":[3,0,0,0,21,3],
"lorem_8h.html#a474701bf19dcc2b62a199d540deb96fc":[3,0,0,0,21,2],
+"lorem_8h.html#a951c300e30e128875a132a95ce1f0686":[3,0,0,0,21,7],
"lorem_8h.html#ac247a6d5e1427f53953ac3fd699e831f":[3,0,0,0,21,0],
"lorem_8h.html#ac8ac32eec75e6335ffdd9e7ba42c88e8":[3,0,0,0,21,6],
"lorem_8h.html#acfe2ea3b024c37b6ab92571404cd6ce4":[3,0,0,0,21,5],
@@ -248,6 +249,5 @@ var NAVTREEINDEX1 =
"namespacefaker_1_1food.html#a3b58938e421e79f85126d4ef3b6e4280":[0,0,0,13,12],
"namespacefaker_1_1food.html#a524958b3f779590a3e7d781bdeb58f22":[0,0,0,13,4],
"namespacefaker_1_1food.html#a5f50d39d0da2d04f87d1fada468c2682":[0,0,0,13,11],
-"namespacefaker_1_1food.html#a6e3f30c718598e29f6c5db9b42374033":[0,0,0,13,3],
-"namespacefaker_1_1food.html#a7ab3916e74c59914e97c64334821e5c7":[0,0,0,13,13]
+"namespacefaker_1_1food.html#a6e3f30c718598e29f6c5db9b42374033":[0,0,0,13,3]
};
diff --git a/navtreeindex2.js b/navtreeindex2.js
index 5272e5d0..8200c186 100644
--- a/navtreeindex2.js
+++ b/navtreeindex2.js
@@ -1,5 +1,6 @@
var NAVTREEINDEX2 =
{
+"namespacefaker_1_1food.html#a7ab3916e74c59914e97c64334821e5c7":[0,0,0,13,13],
"namespacefaker_1_1food.html#ab60ef0fff7acc273fd2317c469f9bd2a":[0,0,0,13,7],
"namespacefaker_1_1food.html#abac00f1ce6f9b49dff1548efa5a2d017":[0,0,0,13,8],
"namespacefaker_1_1food.html#acea2316e65fbcaa8958179a1a1e688a8":[0,0,0,13,6],
@@ -92,6 +93,7 @@ var NAVTREEINDEX2 =
"namespacefaker_1_1lorem.html#a2f5442a6de26bf6bd51ffbf1586cdbe3":[0,0,0,19,1],
"namespacefaker_1_1lorem.html#a375063dbea7caebda30aec4a3fd83775":[0,0,0,19,3],
"namespacefaker_1_1lorem.html#a474701bf19dcc2b62a199d540deb96fc":[0,0,0,19,2],
+"namespacefaker_1_1lorem.html#a951c300e30e128875a132a95ce1f0686":[0,0,0,19,7],
"namespacefaker_1_1lorem.html#ac247a6d5e1427f53953ac3fd699e831f":[0,0,0,19,0],
"namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8":[0,0,0,19,6],
"namespacefaker_1_1lorem.html#acfe2ea3b024c37b6ab92571404cd6ce4":[0,0,0,19,5],
@@ -247,7 +249,5 @@ var NAVTREEINDEX2 =
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa69f4287626aee77f93e2c891b518838b":[0,0,0,24,0,139],
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6b718641741f992e68ec3712718561b8":[0,0,0,24,0,78],
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6bec347f256837d3539ad619bd489de7":[0,0,0,24,0,156],
-"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6c1674d14bf5f95742f572cddb0641a7":[0,0,0,24,0,21],
-"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6cd50fb3091b0a9d3c1ac2cf52441390":[0,0,0,24,0,28],
-"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6dbefdc38954fc54ea0c697d0c6ec0a7":[0,0,0,24,0,16]
+"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6c1674d14bf5f95742f572cddb0641a7":[0,0,0,24,0,21]
};
diff --git a/navtreeindex3.js b/navtreeindex3.js
index 191bbafe..e8a9f124 100644
--- a/navtreeindex3.js
+++ b/navtreeindex3.js
@@ -1,5 +1,7 @@
var NAVTREEINDEX3 =
{
+"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6cd50fb3091b0a9d3c1ac2cf52441390":[0,0,0,24,0,28],
+"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6dbefdc38954fc54ea0c697d0c6ec0a7":[0,0,0,24,0,16],
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6ddecd8ccd9f648d19dc02c7a566cb4f":[0,0,0,24,0,17],
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6e9767f4f15357401b148b9a8ced14ef":[0,0,0,24,0,1],
"namespacefaker_1_1phone.html#af67e35b39f2987b4ed513541c7425a0aa6ea1e24d60afddf388b06f8243c45b70":[0,0,0,24,0,105],
@@ -247,7 +249,5 @@ var NAVTREEINDEX3 =
"namespacemembers_func_i.html":[0,1,1,8],
"namespacemembers_func_j.html":[0,1,1,9],
"namespacemembers_func_l.html":[0,1,1,10],
-"namespacemembers_func_m.html":[0,1,1,11],
-"namespacemembers_func_n.html":[0,1,1,12],
-"namespacemembers_func_o.html":[0,1,1,13]
+"namespacemembers_func_m.html":[0,1,1,11]
};
diff --git a/navtreeindex4.js b/navtreeindex4.js
index a00c42ed..730e39ca 100644
--- a/navtreeindex4.js
+++ b/navtreeindex4.js
@@ -1,5 +1,7 @@
var NAVTREEINDEX4 =
{
+"namespacemembers_func_n.html":[0,1,1,12],
+"namespacemembers_func_o.html":[0,1,1,13],
"namespacemembers_func_p.html":[0,1,1,14],
"namespacemembers_func_r.html":[0,1,1,15],
"namespacemembers_func_s.html":[0,1,1,16],
@@ -247,7 +249,5 @@ var NAVTREEINDEX4 =
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aac8f4261f9f46e6465709e17ebea7a92b":[3,0,0,0,27,0,197],
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aac9c9f116f74ac9d7e60dc415523dfeff":[3,0,0,0,27,0,62],
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aaca1a61ea47898c8c05fa0b87a74e4d30":[3,0,0,0,27,0,163],
-"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aaca577bec19bc265198f91c042df0cec9":[3,0,0,0,27,0,157],
-"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacec565bb29200fdbe4ae533ec88cf124":[3,0,0,0,27,0,47],
-"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacedfc05affe8143cc552076e77407863":[3,0,0,0,27,0,8]
+"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aaca577bec19bc265198f91c042df0cec9":[3,0,0,0,27,0,157]
};
diff --git a/navtreeindex5.js b/navtreeindex5.js
index 924b9502..fc43b4c3 100644
--- a/navtreeindex5.js
+++ b/navtreeindex5.js
@@ -1,5 +1,7 @@
var NAVTREEINDEX5 =
{
+"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacec565bb29200fdbe4ae533ec88cf124":[3,0,0,0,27,0,47],
+"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacedfc05affe8143cc552076e77407863":[3,0,0,0,27,0,8],
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacf4c7e1169281886577940e361854a84":[3,0,0,0,27,0,87],
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aacf69af09959b963cbe031e047f745066":[3,0,0,0,27,0,30],
"phone_8h.html#af67e35b39f2987b4ed513541c7425a0aad0c5ab6bebe308a495693e990a2947bc":[3,0,0,0,27,0,140],
@@ -247,7 +249,5 @@ var NAVTREEINDEX5 =
"word_8h.html#a82ec1a575f056e5c79d2e7bc4e89335d":[3,0,0,0,38,3],
"word_8h.html#aa380bf2a6c8cd76db8fe13d20ff6ccf9":[3,0,0,0,38,4],
"word_8h.html#ad55c7c834bad43272cfcf0f6bce0aa7b":[3,0,0,0,38,5],
-"word_8h.html#ae164b6efba4db33641cfb8eef950dd60":[3,0,0,0,38,7],
-"word_8h.html#af0f10fe34e975d361fd1d286d5073cc2":[3,0,0,0,38,0],
-"word_8h_source.html":[3,0,0,0,38]
+"word_8h.html#ae164b6efba4db33641cfb8eef950dd60":[3,0,0,0,38,7]
};
diff --git a/navtreeindex6.js b/navtreeindex6.js
new file mode 100644
index 00000000..b34942e6
--- /dev/null
+++ b/navtreeindex6.js
@@ -0,0 +1,5 @@
+var NAVTREEINDEX6 =
+{
+"word_8h.html#af0f10fe34e975d361fd1d286d5073cc2":[3,0,0,0,38,0],
+"word_8h_source.html":[3,0,0,0,38]
+};
diff --git a/search/all_16.js b/search/all_16.js
index f4370a0c..f49558c0 100644
--- a/search/all_16.js
+++ b/search/all_16.js
@@ -16,5 +16,6 @@ var searchData=
['withoutissuenumber_13',['WithoutIssueNumber',['../namespacefaker_1_1git.html#af0da7c5c5fa0349172d07c1f103cbf9aab162deffe9bd54c097c31fa349290397',1,'faker::git']]],
['word_14',['word',['../namespacefaker_1_1lorem.html#acfe2ea3b024c37b6ab92571404cd6ce4',1,'faker::lorem']]],
['word_2eh_15',['word.h',['../word_8h.html',1,'']]],
- ['words_16',['words',['../namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8',1,'faker::lorem::words()'],['../namespacefaker_1_1word.html#a3300afd6043c0f11af23e3bd0b9f1782',1,'faker::word::words()']]]
+ ['words_16',['words',['../namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8',1,'faker::lorem::words()'],['../namespacefaker_1_1word.html#a3300afd6043c0f11af23e3bd0b9f1782',1,'faker::word::words()']]],
+ ['wordvector_17',['wordVector',['../namespacefaker_1_1lorem.html#a951c300e30e128875a132a95ce1f0686',1,'faker::lorem']]]
];
diff --git a/search/functions_14.js b/search/functions_14.js
index 8bfab14c..97fe93de 100644
--- a/search/functions_14.js
+++ b/search/functions_14.js
@@ -6,5 +6,6 @@ var searchData=
['weightedrandomelement_3',['weightedRandomElement',['../namespacefaker_1_1helper.html#a37877d125f71459dbed8bca6310274e1',1,'faker::helper']]],
['westernzodiac_4',['westernZodiac',['../namespacefaker_1_1person.html#a8a744df8b8f7dc01d21047350493be3c',1,'faker::person']]],
['word_5',['word',['../namespacefaker_1_1lorem.html#acfe2ea3b024c37b6ab92571404cd6ce4',1,'faker::lorem']]],
- ['words_6',['words',['../namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8',1,'faker::lorem::words()'],['../namespacefaker_1_1word.html#a3300afd6043c0f11af23e3bd0b9f1782',1,'faker::word::words()']]]
+ ['words_6',['words',['../namespacefaker_1_1lorem.html#ac8ac32eec75e6335ffdd9e7ba42c88e8',1,'faker::lorem::words()'],['../namespacefaker_1_1word.html#a3300afd6043c0f11af23e3bd0b9f1782',1,'faker::word::words()']]],
+ ['wordvector_7',['wordVector',['../namespacefaker_1_1lorem.html#a951c300e30e128875a132a95ce1f0686',1,'faker::lorem']]]
];