diff --git a/d3/d80/z__function_8cpp.html b/d3/d80/z__function_8cpp.html
index 9643faa52..f5ca6bd4a 100644
--- a/d3/d80/z__function_8cpp.html
+++ b/d3/d80/z__function_8cpp.html
@@ -231,11 +231,11 @@ Functions
Main function.
- Returns
- 0 on exit
-Definition at line 94 of file z_function.cpp.
- 94 {
-
-
96 return 0;
-
97}
+
Definition at line 110 of file z_function.cpp.
+
110 {
+
+
112 return 0;
+
113}
static void test()
Self-test implementations.
@@ -283,7 +283,23 @@ Functions
85
87 assert((matching_indexes2 == std::vector<uint64_t>{}));
- 88}
+ 88
+ 89
+ 90 std::string text3 = "";
+ 91 std::string pattern3 = "abc";
+ 92
+ 93
+
+ 95 assert((matching_indexes3 == std::vector<uint64_t>{}));
+ 96
+ 97
+ 98 std::string text4 = "redsand";
+ 99 std::string pattern4 = "";
+ 100
+ 101
+ 102 std::vector<uint64_t> matching_indexes4 =
find_pat_in_text(pattern4, text4);
+ 103 assert((matching_indexes4 == std::vector<uint64_t>{0, 1, 2, 3, 4, 5, 6}));
+ 104}
std::vector< uint64_t > find_pat_in_text(const std::string &pattern, const std::string &text)
Using Z_function to find a pattern in a text.
diff --git a/d3/d80/z__function_8cpp_source.html b/d3/d80/z__function_8cpp_source.html
index 48071e7d8..3999676c5 100644
--- a/d3/d80/z__function_8cpp_source.html
+++ b/d3/d80/z__function_8cpp_source.html
@@ -189,19 +189,35 @@ $(function(){initNavTree('d3/d80/z__function_8cpp_source.html','../../'); initRe
87 assert((matching_indexes2 == std::vector<uint64_t>{}));
-
+
+
+ 90 std::string text3 =
"";
+ 91 std::string pattern3 =
"abc";
+
+
+
+ 95 assert((matching_indexes3 == std::vector<uint64_t>{}));
+
+
+ 98 std::string text4 =
"redsand";
+ 99 std::string pattern4 =
"";
+
+
+ 102 std::vector<uint64_t> matching_indexes4 =
find_pat_in_text(pattern4, text4);
+ 103 assert((matching_indexes4 == std::vector<uint64_t>{0, 1, 2, 3, 4, 5, 6}));
+
-
-
-
-
-
-
+
+
static void test()
Self-test implementations.
std::vector< uint64_t > Z_function(const std::string &pattern)
for IO operations
std::vector< uint64_t > find_pat_in_text(const std::string &pattern, const std::string &text)
Using Z_function to find a pattern in a text.
-
+