diff --git a/docs/adoc_8hpp_source.html b/docs/adoc_8hpp_source.html
index 2888dde..3370cb0 100644
--- a/docs/adoc_8hpp_source.html
+++ b/docs/adoc_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/annotated.html b/docs/annotated.html
index d599a3e..2d016c7 100644
--- a/docs/annotated.html
+++ b/docs/annotated.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/bookmarks_8hpp_source.html b/docs/bookmarks_8hpp_source.html
index b778026..84bba60 100644
--- a/docs/bookmarks_8hpp_source.html
+++ b/docs/bookmarks_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classes.html b/docs/classes.html
index 45d0300..9a974ea 100644
--- a/docs/classes.html
+++ b/docs/classes.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Database-members.html b/docs/classremwharead_1_1Database-members.html
index a251604..fff1966 100644
--- a/docs/classremwharead_1_1Database-members.html
+++ b/docs/classremwharead_1_1Database-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Database.html b/docs/classremwharead_1_1Database.html
index 5d7b8e2..3b56edf 100644
--- a/docs/classremwharead_1_1Database.html
+++ b/docs/classremwharead_1_1Database.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1AsciiDoc-members.html b/docs/classremwharead_1_1Export_1_1AsciiDoc-members.html
index 8467f57..213a69d 100644
--- a/docs/classremwharead_1_1Export_1_1AsciiDoc-members.html
+++ b/docs/classremwharead_1_1Export_1_1AsciiDoc-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1AsciiDoc.html b/docs/classremwharead_1_1Export_1_1AsciiDoc.html
index bda8821..a64ece4 100644
--- a/docs/classremwharead_1_1Export_1_1AsciiDoc.html
+++ b/docs/classremwharead_1_1Export_1_1AsciiDoc.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Export_1_1Bookmarks-members.html b/docs/classremwharead_1_1Export_1_1Bookmarks-members.html
index 9ca8f64..61619fb 100644
--- a/docs/classremwharead_1_1Export_1_1Bookmarks-members.html
+++ b/docs/classremwharead_1_1Export_1_1Bookmarks-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1Bookmarks.html b/docs/classremwharead_1_1Export_1_1Bookmarks.html
index 5b2d0f8..e0bebab 100644
--- a/docs/classremwharead_1_1Export_1_1Bookmarks.html
+++ b/docs/classremwharead_1_1Export_1_1Bookmarks.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Export_1_1CSV-members.html b/docs/classremwharead_1_1Export_1_1CSV-members.html
index cf1d402..1836f9d 100644
--- a/docs/classremwharead_1_1Export_1_1CSV-members.html
+++ b/docs/classremwharead_1_1Export_1_1CSV-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1CSV.html b/docs/classremwharead_1_1Export_1_1CSV.html
index 82dd935..3645b31 100644
--- a/docs/classremwharead_1_1Export_1_1CSV.html
+++ b/docs/classremwharead_1_1Export_1_1CSV.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Export_1_1ExportBase-members.html b/docs/classremwharead_1_1Export_1_1ExportBase-members.html
index 440c072..1d1024a 100644
--- a/docs/classremwharead_1_1Export_1_1ExportBase-members.html
+++ b/docs/classremwharead_1_1Export_1_1ExportBase-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1ExportBase.html b/docs/classremwharead_1_1Export_1_1ExportBase.html
index 8e35006..2e74ee6 100644
--- a/docs/classremwharead_1_1Export_1_1ExportBase.html
+++ b/docs/classremwharead_1_1Export_1_1ExportBase.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -107,7 +107,7 @@ Public Member Functions
|
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
@@ -223,7 +223,7 @@ ostream & _out |
-
Sort entries from newest to oldest.
+
Sort entries from newest to oldest and remove duplicates.
- Parameters
-
entries | List of Database::entry to sort. |
@@ -231,7 +231,7 @@ ostream & _out |
- Returns
- Sorted list of Database::entry.
- 32 entries.sort([](
const auto &a,
const auto &b)
34 return (a.datetime > b.datetime);
+ 32 entries.sort([](
const auto &a,
const auto &b)
34 return (a.datetime > b.datetime);
The documentation for this class was generated from the following files:
diff --git a/docs/classremwharead_1_1Export_1_1JSON-members.html b/docs/classremwharead_1_1Export_1_1JSON-members.html
index 4fdfbb2..666e09d 100644
--- a/docs/classremwharead_1_1Export_1_1JSON-members.html
+++ b/docs/classremwharead_1_1Export_1_1JSON-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1JSON.html b/docs/classremwharead_1_1Export_1_1JSON.html
index 9512b5c..7cffed0 100644
--- a/docs/classremwharead_1_1Export_1_1JSON.html
+++ b/docs/classremwharead_1_1Export_1_1JSON.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Export_1_1RSS-members.html b/docs/classremwharead_1_1Export_1_1RSS-members.html
index 3e3cdea..199eb9c 100644
--- a/docs/classremwharead_1_1Export_1_1RSS-members.html
+++ b/docs/classremwharead_1_1Export_1_1RSS-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1RSS.html b/docs/classremwharead_1_1Export_1_1RSS.html
index 037c7f2..2f47e7f 100644
--- a/docs/classremwharead_1_1Export_1_1RSS.html
+++ b/docs/classremwharead_1_1Export_1_1RSS.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Export_1_1Simple-members.html b/docs/classremwharead_1_1Export_1_1Simple-members.html
index 8b47e01..42de5b5 100644
--- a/docs/classremwharead_1_1Export_1_1Simple-members.html
+++ b/docs/classremwharead_1_1Export_1_1Simple-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Export_1_1Simple.html b/docs/classremwharead_1_1Export_1_1Simple.html
index a99ef17..452cbe5 100644
--- a/docs/classremwharead_1_1Export_1_1Simple.html
+++ b/docs/classremwharead_1_1Export_1_1Simple.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -101,7 +101,7 @@ Public Member Functions
Additional Inherited Members
const list< Database::entry > | sort_entries (list< Database::entry > entries) const |
- | Sort entries from newest to oldest. More...
|
+ | Sort entries from newest to oldest and remove duplicates. More...
|
|
| ExportBase (const list< Database::entry > &entries, ostream &out=cout) |
| Export list of Database::entry. More...
|
@@ -146,7 +146,7 @@ ostream & _out |
-const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
diff --git a/docs/classremwharead_1_1Search-members.html b/docs/classremwharead_1_1Search-members.html
index 0dfccc6..4097cab 100644
--- a/docs/classremwharead_1_1Search-members.html
+++ b/docs/classremwharead_1_1Search-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/classremwharead_1_1Search.html b/docs/classremwharead_1_1Search.html
index d489da6..65fb365 100644
--- a/docs/classremwharead_1_1Search.html
+++ b/docs/classremwharead_1_1Search.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -124,7 +124,7 @@ Public Member Functions
Defines the entries to search.
- Since
- 0.7.0
-
+
@@ -165,8 +165,8 @@ Public Member Functions
- Returns
- List of matching Database::entry.
- Since
- 0.7.0
- 129 vector<vector<string>> searchlist = parse_expression(expression);
130 list<DB::entry> result =
search_tags(expression, is_re);
132 for (
const vector<string> &terms_or : searchlist)
138 bool matched_title =
true;
139 bool matched_description =
true;
140 bool matched_fulltext =
true;
142 const auto it = find(result.begin(), result.end(), entry);
143 if (it != result.end())
148 for (
const string &term : terms_or)
150 const string title = to_lowercase(entry.title);
151 const string description = to_lowercase(entry.description);
152 const string fulltext = to_lowercase(entry.fulltext);
157 const regex re(term);
159 if(!regex_search(title, re))
161 matched_title =
false;
164 if(!regex_search(description, re))
166 matched_description =
false;
169 if(!regex_search(fulltext, re))
171 matched_fulltext =
false;
176 if (title.find(term) == string::npos)
178 matched_title =
false;
181 if (description.find(term) == string::npos)
183 matched_description =
false;
186 if (fulltext.find(term) == string::npos)
188 matched_fulltext =
false;
192 if (matched_title ==
true 193 || matched_description ==
true 194 || matched_fulltext ==
true)
196 result.push_back(entry);
struct remwharead::Database::entry entry
Describes a database entry.
-
const list< Database::entry > search_tags(string expression, const bool is_re) const
Search in tags of database entries.
Definition: search.cpp:82
+
134 vector<vector<string>> searchlist = parse_expression(expression);
135 list<DB::entry> result =
search_tags(expression, is_re);
137 for (
const vector<string> &terms_or : searchlist)
143 bool matched_title =
true;
144 bool matched_description =
true;
145 bool matched_fulltext =
true;
147 const auto it = find(result.begin(), result.end(), entry);
148 if (it != result.end())
153 for (
const string &term : terms_or)
155 const string title = to_lowercase(entry.title);
156 const string description = to_lowercase(entry.description);
157 const string fulltext = to_lowercase(entry.fulltext);
162 const RegEx re(term);
166 matched_title =
false;
169 if (!(re == description))
171 matched_description =
false;
174 if (!(re == fulltext))
176 matched_fulltext =
false;
181 if (title.find(term) == string::npos)
183 matched_title =
false;
186 if (description.find(term) == string::npos)
188 matched_description =
false;
191 if (fulltext.find(term) == string::npos)
193 matched_fulltext =
false;
197 if (matched_title ==
true 198 || matched_description ==
true 199 || matched_fulltext ==
true)
201 result.push_back(entry);
struct remwharead::Database::entry entry
Describes a database entry.
+
const list< Database::entry > search_tags(string expression, const bool is_re) const
Search in tags of database entries.
Definition: search.cpp:87
@@ -207,7 +207,7 @@ Public Member Functions
- Returns
- List of matching Database::entry.
- Since
- 0.7.2
- 207 list<Database::entry> entries = _entries;
209 const size_t len = entries.size();
210 constexpr
size_t min_len = 100;
211 constexpr
size_t min_per_thread = 50;
212 const size_t n_threads = thread::hardware_concurrency() / 3 + 1;
216 cut_at = len / n_threads;
219 if (cut_at < min_per_thread)
221 cut_at = min_per_thread;
225 list<list<Database::entry>> segments;
228 while (entries.size() > cut_at)
230 list<Database::entry> segment;
232 auto it = entries.begin();
233 std::advance(it, cut_at);
236 segment.splice(segment.begin(), entries, entries.begin(), it);
237 segments.push_back(move(segment));
240 segments.push_back(move(entries));
242 list<thread> threads;
243 for (
auto &segment : segments)
250 segment = search.search_all(expression, is_re);
252 threads.push_back(move(t));
255 for (thread &t : threads)
259 entries.splice(entries.end(), segments.front());
260 segments.pop_front();
Search(const list< Database::entry > &entries)
Defines the entries to search.
Definition: search.cpp:38
+
212 list<Database::entry> entries = _entries;
214 const size_t len = entries.size();
215 constexpr
size_t min_len = 100;
216 constexpr
size_t min_per_thread = 50;
217 const size_t n_threads = thread::hardware_concurrency() / 3 + 1;
221 cut_at = len / n_threads;
224 if (cut_at < min_per_thread)
226 cut_at = min_per_thread;
230 list<list<Database::entry>> segments;
233 while (entries.size() > cut_at)
235 list<Database::entry> segment;
237 auto it = entries.begin();
238 std::advance(it, cut_at);
241 segment.splice(segment.begin(), entries, entries.begin(), it);
242 segments.push_back(move(segment));
245 segments.push_back(move(entries));
247 list<thread> threads;
248 for (
auto &segment : segments)
255 segment = search.search_all(expression, is_re);
257 threads.push_back(move(t));
260 for (thread &t : threads)
264 entries.splice(entries.end(), segments.front());
265 segments.pop_front();
Search(const list< Database::entry > &entries)
Defines the entries to search.
Definition: search.cpp:36
@@ -248,7 +248,7 @@ Public Member Functions
- Returns
- List of matching Database::entry.
- Since
- 0.7.0
- 85 vector<vector<string>> searchlist = parse_expression(expression);
86 list<DB::entry> result;
88 for (
const vector<string> &tags_or : searchlist)
94 for (
const string &tag : tags_or)
96 const auto it = find_if(
97 entry.tags.begin(), entry.tags.end(),
103 const regex re(
"^" + tag +
"$");
104 return regex_search(s, re);
111 if (it == entry.tags.end())
118 result.push_back(entry);
struct remwharead::Database::entry entry
Describes a database entry.
+
90 vector<vector<string>> searchlist = parse_expression(expression);
91 list<DB::entry> result;
93 for (
const vector<string> &tags_or : searchlist)
99 for (
const string &tag : tags_or)
101 const auto it = find_if(
102 entry.tags.begin(), entry.tags.end(),
108 const RegEx re(
"^" + tag +
"$");
116 if (it == entry.tags.end())
123 result.push_back(entry);
struct remwharead::Database::entry entry
Describes a database entry.
diff --git a/docs/classremwharead_1_1URI-members.html b/docs/classremwharead_1_1URI-members.html
index 34a48ae..bba1762 100644
--- a/docs/classremwharead_1_1URI-members.html
+++ b/docs/classremwharead_1_1URI-members.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -82,7 +82,7 @@ $(function() {
remove_html_tags(const string &html, const string &tag="") | remwharead::URI | protected |
remove_newlines(string text) | remwharead::URI | protected |
strip_html(const string &html) | remwharead::URI | protected |
- unescape_html(const string &html) | remwharead::URI | protected |
+ unescape_html(string html) | remwharead::URI | protected |
URI(const string &uri) | remwharead::URI | explicit |
~URI() (defined in remwharead::URI) | remwharead::URI | virtual |
diff --git a/docs/classremwharead_1_1URI.html b/docs/classremwharead_1_1URI.html
index 1ca2408..8962b6f 100644
--- a/docs/classremwharead_1_1URI.html
+++ b/docs/classremwharead_1_1URI.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -110,9 +110,9 @@ Protected Member Functions
const string | remove_html_tags (const string &html, const string &tag="") |
| Remove HTML tags. More...
|
|
-const string | unescape_html (const string &html) |
- | Convert HTML entities to UTF-8. More...
|
- |
+const string | unescape_html (string html) |
+ | Convert HTML entities to UTF-8. More...
|
+ |
const string | remove_newlines (string text) |
| Replace newlines with spaces. More...
|
|
@@ -154,7 +154,7 @@ string _uri |
Construct object and set URL.
Initializes TLS and sets proxy from the environment variable http_proxy
, if possible.
- Since
- 0.6.0
- 67 Poco::Net::initializeSSL();
71 HTTPClientSession::ProxyConfig proxy;
72 string proxy_env = Environment::get(
"http_proxy");
76 if ((pos = proxy_env.find(
"//")) != string::npos)
78 proxy_env = proxy_env.substr(pos + 2);
80 if ((pos = proxy_env.find(
'/')) != string::npos)
82 proxy_env = proxy_env.substr(0, pos);
85 if ((pos = proxy_env.find(
':')) != string::npos)
87 proxy.host = proxy_env.substr(0, pos);
88 proxy.port = std::stoi(proxy_env.substr(pos + 1));
92 proxy.host = proxy_env;
95 HTTPClientSession::setGlobalProxyConfig(proxy);
97 catch (
const std::exception &)
+ 65 Poco::Net::initializeSSL();
69 HTTPClientSession::ProxyConfig proxy;
70 string proxy_env = Environment::get(
"http_proxy");
74 if ((pos = proxy_env.find(
"//")) != string::npos)
76 proxy_env = proxy_env.substr(pos + 2);
78 if ((pos = proxy_env.find(
'/')) != string::npos)
80 proxy_env = proxy_env.substr(0, pos);
83 if ((pos = proxy_env.find(
':')) != string::npos)
85 proxy.host = proxy_env.substr(0, pos);
86 proxy.port = std::stoi(proxy_env.substr(pos + 1));
90 proxy.host = proxy_env;
93 HTTPClientSession::setGlobalProxyConfig(proxy);
95 catch (
const std::exception &)
@@ -175,7 +175,7 @@ string _uri |
Save URI in archive and return archive-URI.
- Since
- 0.6.0
- 593 if (_uri.substr(0, 4) !=
"http")
595 return {
false,
"Only HTTP(S) is archivable.",
"" };
600 const string answer =
make_request(
"https://web.archive.org/save/" 605 return {
true,
"",
"https://web.archive.org" + answer };
608 catch (
const Poco::Exception &e)
610 return {
false, e.displayText(),
"" };
613 return {
false,
"Unknown error.",
"" };
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:133
+
600 if (_uri.substr(0, 4) !=
"http")
602 return {
false,
"Only HTTP(S) is archivable.",
"" };
607 const string answer =
make_request(
"https://web.archive.org/save/" 612 return {
true,
"",
"https://web.archive.org" + answer };
615 catch (
const Poco::Exception &e)
617 return {
false, e.displayText(),
"" };
620 return {
false,
"Unknown error.",
"" };
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:131
@@ -205,8 +205,8 @@ string _uri |
Extract the description from an HTML page.
- Since
- 0.6.0
- 221 const regex re_htmlfile(
"\\.(.?html?|xml|rss)$");
222 if (_uri.substr(0, 4) ==
"http" || regex_search(_uri, re_htmlfile))
225 const regex re(
"description\"[^>]+content=\"([^\"]+)", icase);
226 regex_search(html, match, re);
const string strip_html(const string &html)
Removes HTML tags and superflous spaces from an HTML page.
Definition: uri.cpp:233
-
const string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:616
+
223 const RegEx re_htmlfile(
".*\\.(.?html?|xml|rss)$", RegEx::RE_CASELESS);
224 if (_uri.substr(0, 4) ==
"http" || re_htmlfile.match(_uri))
226 const RegEx re_desc(
"description\"[^>]+content=\"([^\"]+)",
228 vector<string> matches;
229 re_desc.split(html, matches);
230 if (matches.size() >= 2)
const string unescape_html(string html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:298
+
const string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:623
@@ -236,8 +236,8 @@ string _uri |
Extract the title from an HTML page.
- Since
- 0.6.0
- 208 const regex re_htmlfile(
"\\.(.?html?|xml|rss)$");
209 if (_uri.substr(0, 4) ==
"http" || regex_search(_uri, re_htmlfile))
212 regex_search(html, match, regex(
"<title>([^<]+)", icase));
const string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:616
-
const string unescape_html(const string &html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:291
+
206 const RegEx re_htmlfile(
".*\\.(.?html?|xml|rss)$", RegEx::RE_CASELESS);
207 if (_uri.substr(0, 4) ==
"http" || re_htmlfile.match(_uri))
209 const RegEx re_title(
"<title>([^<]+)", RegEx::RE_CASELESS);
210 vector<string> matches;
211 re_title.split(html, matches);
212 if (matches.size() >= 2)
const string unescape_html(string html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:298
+
const string remove_newlines(string text)
Replace newlines with spaces.
Definition: uri.cpp:623
@@ -258,10 +258,10 @@ string _uri |
Download URI and extract title, description and full text.
- Since
- 0.6.0
- 125 catch (
const Poco::Exception &e)
127 return {
false, e.displayText(),
"",
"",
"" };
130 return {
false,
"Unknown error.",
"",
"",
"" };
const string strip_html(const string &html)
Removes HTML tags and superflous spaces from an HTML page.
Definition: uri.cpp:233
-
const string extract_title(const string &html)
Extract the title from an HTML page.
Definition: uri.cpp:206
-
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:133
-
const string extract_description(const string &html)
Extract the description from an HTML page.
Definition: uri.cpp:219
+
123 catch (
const Poco::Exception &e)
125 return {
false, e.displayText(),
"",
"",
"" };
128 return {
false,
"Unknown error.",
"",
"",
"" };
const string strip_html(const string &html)
Removes HTML tags and superflous spaces from an HTML page.
Definition: uri.cpp:239
+
const string extract_title(const string &html)
Extract the title from an HTML page.
Definition: uri.cpp:204
+
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:131
+
const string extract_description(const string &html)
Extract the description from an HTML page.
Definition: uri.cpp:221
@@ -301,8 +301,8 @@ string _uri |
Make a HTTP(S) request.
- Since
- 0.6.0
- 135 Poco::URI poco_uri(uri);
137 archive ? HTTPRequest::HTTP_HEAD : HTTPRequest::HTTP_GET;
138 string path = poco_uri.getPathAndQuery();
144 unique_ptr<HTTPClientSession> session;
145 if (poco_uri.getScheme() ==
"https")
147 session = make_unique<HTTPSClientSession>(poco_uri.getHost(),
150 else if (poco_uri.getScheme() ==
"http")
152 session = make_unique<HTTPClientSession>(poco_uri.getHost(),
157 throw Poco::Exception(
"Protocol not supported.");
160 HTTPRequest request(method, path, HTTPMessage::HTTP_1_1);
161 request.set(
"User-Agent",
string(
"remwharead/") + global::version);
163 HTTPResponse response;
165 session->sendRequest(request);
166 istream &rs = session->receiveResponse(response);
169 switch (response.getStatus())
177 string location = response.get(
"Location");
178 if (location.substr(0, 4) !=
"http")
180 location = poco_uri.getScheme() +
"://" + poco_uri.getHost()
185 case HTTPResponse::HTTP_OK:
190 answer = response.get(
"Content-Location");
194 StreamCopier::copyToString(rs, answer);
200 throw Poco::Exception(response.getReason());
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:133
-
const archive_answer archive()
Save URI in archive and return archive-URI.
Definition: uri.cpp:591
+
133 Poco::URI poco_uri(uri);
135 archive ? HTTPRequest::HTTP_HEAD : HTTPRequest::HTTP_GET;
136 string path = poco_uri.getPathAndQuery();
142 unique_ptr<HTTPClientSession> session;
143 if (poco_uri.getScheme() ==
"https")
145 session = make_unique<HTTPSClientSession>(poco_uri.getHost(),
148 else if (poco_uri.getScheme() ==
"http")
150 session = make_unique<HTTPClientSession>(poco_uri.getHost(),
155 throw Poco::Exception(
"Protocol not supported.");
158 HTTPRequest request(method, path, HTTPMessage::HTTP_1_1);
159 request.set(
"User-Agent",
string(
"remwharead/") + global::version);
161 HTTPResponse response;
163 session->sendRequest(request);
164 istream &rs = session->receiveResponse(response);
167 switch (response.getStatus())
175 string location = response.get(
"Location");
176 if (location.substr(0, 4) !=
"http")
178 location = poco_uri.getScheme() +
"://" + poco_uri.getHost()
183 case HTTPResponse::HTTP_OK:
188 answer = response.get(
"Content-Location");
192 StreamCopier::copyToString(rs, answer);
198 throw Poco::Exception(response.getReason());
const string make_request(const string &uri, bool archive=false) const
Make a HTTP(S) request.
Definition: uri.cpp:131
+
const archive_answer archive()
Save URI in archive and return archive-URI.
Definition: uri.cpp:598
@@ -349,7 +349,7 @@ string _uri |
- Since
- 0.6.0
- 260 while (pos != std::string::npos)
262 size_t startpos = html.find(
'<', pos);
263 size_t endpos = html.find(
'>', startpos);
264 out += html.substr(pos, startpos - pos);
266 if (pos != std::string::npos)
276 while ((pos = out.find(
"<" + tag)) != std::string::npos)
278 size_t endpos = out.find(
"</" + tag, pos);
279 if (endpos == std::string::npos)
283 endpos += 3 + tag.length();
284 out.replace(pos, endpos - pos,
"");
+ 267 while (pos != std::string::npos)
269 size_t startpos = html.find(
'<', pos);
270 size_t endpos = html.find(
'>', startpos);
271 out += html.substr(pos, startpos - pos);
273 if (pos != std::string::npos)
283 while ((pos = out.find(
"<" + tag)) != std::string::npos)
285 size_t endpos = out.find(
"</" + tag, pos);
286 if (endpos == std::string::npos)
290 endpos += 3 + tag.length();
291 out.replace(pos, endpos - pos,
"");
@@ -378,7 +378,7 @@ string _uri |
Replace newlines with spaces.
- Since
- 0.6.0
- 619 while ((posn = text.find(
'\n', posn)) != std::string::npos)
621 text.replace(posn, 1,
" ");
623 size_t posr = posn - 1;
624 if (text[posr] ==
'\r')
626 text.replace(posr, 1,
" ");
+ 626 while ((posn = text.find(
'\n', posn)) != std::string::npos)
628 text.replace(posn, 1,
" ");
630 size_t posr = posn - 1;
631 if (text[posr] ==
'\r')
633 text.replace(posr, 1,
" ");
@@ -407,13 +407,13 @@ string _uri |
Removes HTML tags and superflous spaces from an HTML page.
- Since
- 0.6.0
- 242 while ((pos = out.find(
"\r", pos)) != std::string::npos)
244 out.replace(pos, 1,
"");
247 out = regex_replace(out, regex(
"\\s+\n"),
"\n");
248 out = regex_replace(out, regex(
"\n{2,}"),
"\n");
const string remove_html_tags(const string &html, const string &tag="")
Remove HTML tags.
Definition: uri.cpp:253
-
const string unescape_html(const string &html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:291
+
248 while ((pos = out.find(
"\r", pos)) != std::string::npos)
250 out.replace(pos, 1,
"");
254 RegEx(
"\\s+\n").subst(out,
"\n", RegEx::RE_GLOBAL);
255 RegEx(
"\n{2,}").subst(out,
"\n", RegEx::RE_GLOBAL);
const string unescape_html(string html)
Convert HTML entities to UTF-8.
Definition: uri.cpp:298
+
const string remove_html_tags(const string &html, const string &tag="")
Remove HTML tags.
Definition: uri.cpp:260
-
-◆ unescape_html()
+
+◆ unescape_html()
@@ -424,7 +424,7 @@ string
_uri |
const string remwharead::URI::unescape_html |
( |
- const string & |
+ string |
html | ) |
|
@@ -438,7 +438,7 @@ string
_uri |
Convert HTML entities to UTF-8.
- Since
- 0.6.0
-
293 string buffer = html;
297 std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> u8c;
298 regex re_entity(
"&#(x)?([[:alnum:]]{1,8});");
301 while (regex_search(buffer, match, re_entity))
303 char32_t codepoint = 0;
305 if (match[1].length() == 1)
307 codepoint = std::stoi(match[2].str(),
nullptr, 16);
311 codepoint = std::stoi(match[2].str(),
nullptr, 10);
313 output += match.prefix().str() + u8c.to_bytes(codepoint);
314 buffer = match.suffix().str();
320 const array<const std::pair<const string, const char32_t>, 258> names =
322 {
"exclamation", 0x0021 },
324 {
"percent", 0x0025 },
335 {
"curren", 0x00A4 },
337 {
"brvbar", 0x00A6 },
348 {
"plusmn", 0x00B1 },
354 {
"middot", 0x00B7 },
359 {
"frac14", 0x00BC },
360 {
"frac12", 0x00BD },
361 {
"frac34", 0x00BE },
362 {
"iquest", 0x00BF },
363 {
"Agrave", 0x00C0 },
364 {
"Aacute", 0x00C1 },
366 {
"Atilde", 0x00C3 },
370 {
"Ccedil", 0x00C7 },
371 {
"Egrave", 0x00C8 },
372 {
"Eacute", 0x00C9 },
375 {
"Igrave", 0x00CC },
376 {
"Iacute", 0x00CD },
380 {
"Ntilde", 0x00D1 },
381 {
"Ograve", 0x00D2 },
382 {
"Oacute", 0x00D3 },
384 {
"Otilde", 0x00D5 },
387 {
"Oslash", 0x00D8 },
388 {
"Ugrave", 0x00D9 },
389 {
"Uacute", 0x00DA },
392 {
"Yacute", 0x00DD },
395 {
"agrave", 0x00E0 },
396 {
"aacute", 0x00E1 },
398 {
"atilde", 0x00E3 },
402 {
"ccedil", 0x00E7 },
403 {
"egrave", 0x00E8 },
404 {
"eacute", 0x00E9 },
407 {
"igrave", 0x00EC },
408 {
"iacute", 0x00ED },
412 {
"ntilde", 0x00F1 },
413 {
"ograve", 0x00F2 },
414 {
"oacute", 0x00F3 },
416 {
"otilde", 0x00F5 },
418 {
"divide", 0x00F7 },
419 {
"oslash", 0x00F8 },
420 {
"ugrave", 0x00F9 },
421 {
"uacute", 0x00FA },
424 {
"yacute", 0x00FD },
429 {
"Scaron", 0x0160 },
430 {
"scaron", 0x0161 },
439 {
"Epsilon", 0x0395 },
445 {
"Lambda", 0x039B },
449 {
"Omicron", 0x039F },
454 {
"Upsilon", 0x03A5 },
463 {
"epsilon", 0x03B5 },
469 {
"lambda", 0x03BB },
473 {
"omicron", 0x03BF },
476 {
"sigmaf", 0x03C2 },
479 {
"upsilon", 0x03C5 },
484 {
"thetasym", 0x03D1 },
489 {
"thinsp", 0x2009 },
496 {
"horbar", 0x2015 },
503 {
"dagger", 0x2020 },
504 {
"Dagger", 0x2021 },
506 {
"hellip", 0x2026 },
507 {
"permil", 0x2030 },
510 {
"lsaquo", 0x2039 },
511 {
"rsaquo", 0x203A },
516 {
"weierp", 0x2118 },
519 {
"alefsym", 0x2135 },
531 {
"forall", 0x2200 },
542 {
"lowast", 0x2217 },
552 {
"there4", 0x2234 },
566 {
"otimes", 0x2297 },
571 {
"lfloor", 0x230A },
572 {
"rfloor", 0x230B },
576 {
"spades", 0x2660 },
578 {
"hearts", 0x2665 },
582 for (
auto &pair : names)
584 const regex re(
'&' + pair.first +
';');
585 output = regex_replace(output, re, u8c.to_bytes(pair.second));
+
301 std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> u8c;
302 const RegEx re_entity(
"&#(x)?([[:alnum:]]{1,8});");
303 RegEx::MatchVec matches;
304 string::size_type pos = 0;
306 while (re_entity.match(html, pos, matches) != 0)
308 char32_t codepoint = 0;
309 const string number = html.substr(matches[2].offset,
312 if (matches[1].length != 0)
314 codepoint = std::stoi(number,
nullptr, 16);
318 codepoint = std::stoi(number,
nullptr, 10);
320 const string unicode = u8c.to_bytes(codepoint);
321 html.replace(matches[0].offset, matches[0].length, unicode);
322 pos = matches[0].offset + unicode.length();
327 const array<const std::pair<const string, const char32_t>, 258> names =
329 {
"exclamation", 0x0021 },
331 {
"percent", 0x0025 },
342 {
"curren", 0x00A4 },
344 {
"brvbar", 0x00A6 },
355 {
"plusmn", 0x00B1 },
361 {
"middot", 0x00B7 },
366 {
"frac14", 0x00BC },
367 {
"frac12", 0x00BD },
368 {
"frac34", 0x00BE },
369 {
"iquest", 0x00BF },
370 {
"Agrave", 0x00C0 },
371 {
"Aacute", 0x00C1 },
373 {
"Atilde", 0x00C3 },
377 {
"Ccedil", 0x00C7 },
378 {
"Egrave", 0x00C8 },
379 {
"Eacute", 0x00C9 },
382 {
"Igrave", 0x00CC },
383 {
"Iacute", 0x00CD },
387 {
"Ntilde", 0x00D1 },
388 {
"Ograve", 0x00D2 },
389 {
"Oacute", 0x00D3 },
391 {
"Otilde", 0x00D5 },
394 {
"Oslash", 0x00D8 },
395 {
"Ugrave", 0x00D9 },
396 {
"Uacute", 0x00DA },
399 {
"Yacute", 0x00DD },
402 {
"agrave", 0x00E0 },
403 {
"aacute", 0x00E1 },
405 {
"atilde", 0x00E3 },
409 {
"ccedil", 0x00E7 },
410 {
"egrave", 0x00E8 },
411 {
"eacute", 0x00E9 },
414 {
"igrave", 0x00EC },
415 {
"iacute", 0x00ED },
419 {
"ntilde", 0x00F1 },
420 {
"ograve", 0x00F2 },
421 {
"oacute", 0x00F3 },
423 {
"otilde", 0x00F5 },
425 {
"divide", 0x00F7 },
426 {
"oslash", 0x00F8 },
427 {
"ugrave", 0x00F9 },
428 {
"uacute", 0x00FA },
431 {
"yacute", 0x00FD },
436 {
"Scaron", 0x0160 },
437 {
"scaron", 0x0161 },
446 {
"Epsilon", 0x0395 },
452 {
"Lambda", 0x039B },
456 {
"Omicron", 0x039F },
461 {
"Upsilon", 0x03A5 },
470 {
"epsilon", 0x03B5 },
476 {
"lambda", 0x03BB },
480 {
"omicron", 0x03BF },
483 {
"sigmaf", 0x03C2 },
486 {
"upsilon", 0x03C5 },
491 {
"thetasym", 0x03D1 },
496 {
"thinsp", 0x2009 },
503 {
"horbar", 0x2015 },
510 {
"dagger", 0x2020 },
511 {
"Dagger", 0x2021 },
513 {
"hellip", 0x2026 },
514 {
"permil", 0x2030 },
517 {
"lsaquo", 0x2039 },
518 {
"rsaquo", 0x203A },
523 {
"weierp", 0x2118 },
526 {
"alefsym", 0x2135 },
538 {
"forall", 0x2200 },
549 {
"lowast", 0x2217 },
559 {
"there4", 0x2234 },
573 {
"otimes", 0x2297 },
578 {
"lfloor", 0x230A },
579 {
"rfloor", 0x230B },
583 {
"spades", 0x2660 },
585 {
"hearts", 0x2665 },
589 for (
auto &pair : names)
591 const RegEx re(
'&' + pair.first +
';');
592 re.subst(html, u8c.to_bytes(pair.second), RegEx::RE_GLOBAL);
The documentation for this class was generated from the following files:
diff --git a/docs/csv_8hpp_source.html b/docs/csv_8hpp_source.html
index 5ad9617..d85ec79 100644
--- a/docs/csv_8hpp_source.html
+++ b/docs/csv_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/dir_529a3e0c72053aaa27e3266821c6a27e.html b/docs/dir_529a3e0c72053aaa27e3266821c6a27e.html
index c28d9f8..a6e36a1 100644
--- a/docs/dir_529a3e0c72053aaa27e3266821c6a27e.html
+++ b/docs/dir_529a3e0c72053aaa27e3266821c6a27e.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html b/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
index 68817c5..739d21b 100644
--- a/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
+++ b/docs/dir_68267d1309a1af8e8297ef4c3efbcdba.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/dir_a26cd56a311ed2c6b00868ab8167f874.html b/docs/dir_a26cd56a311ed2c6b00868ab8167f874.html
index 5debcbb..6782581 100644
--- a/docs/dir_a26cd56a311ed2c6b00868ab8167f874.html
+++ b/docs/dir_a26cd56a311ed2c6b00868ab8167f874.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/dir_c85d3e3c5052e9ad9ce18c6863244a25.html b/docs/dir_c85d3e3c5052e9ad9ce18c6863244a25.html
index 1b1e1b0..596a3fa 100644
--- a/docs/dir_c85d3e3c5052e9ad9ce18c6863244a25.html
+++ b/docs/dir_c85d3e3c5052e9ad9ce18c6863244a25.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/dir_d44c64559bbebec7f509842c48db8b23.html
index c39ddb8..09887c4 100644
--- a/docs/dir_d44c64559bbebec7f509842c48db8b23.html
+++ b/docs/dir_d44c64559bbebec7f509842c48db8b23.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/export_8hpp_source.html b/docs/export_8hpp_source.html
index b92db6e..a827a82 100644
--- a/docs/export_8hpp_source.html
+++ b/docs/export_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -71,7 +71,7 @@ $(function() {
17 #ifndef REMWHAREAD_EXPORT_HPP 18 #define REMWHAREAD_EXPORT_HPP 48 explicit ExportBase(
const list<Database::entry> &entries,
54 virtual void print()
const = 0;
57 const list<Database::entry> _entries;
67 const list<Database::entry>
73 #endif // REMWHAREAD_EXPORT_HPP ExportBase(const list< Database::entry > &entries, ostream &out=cout)
Export list of Database::entry.
Definition: export.cpp:24
-
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest.
Definition: export.cpp:30
+
const list< Database::entry > sort_entries(list< Database::entry > entries) const
Sort entries from newest to oldest and remove duplicates.
Definition: export.cpp:30
Base class for exports.
Definition: export.hpp:39
virtual void print() const =0
Print output to std::ostream.
diff --git a/docs/files.html b/docs/files.html
index 85d1ca3..5a1b8c1 100644
--- a/docs/files.html
+++ b/docs/files.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/functions.html b/docs/functions.html
index e4048d8..54a7793 100644
--- a/docs/functions.html
+++ b/docs/functions.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -136,7 +136,7 @@ $(function() {
: remwharead::URI
- unescape_html()
-: remwharead::URI
+: remwharead::URI
- URI()
: remwharead::URI
diff --git a/docs/functions_func.html b/docs/functions_func.html
index 2750bbb..79c725e 100644
--- a/docs/functions_func.html
+++ b/docs/functions_func.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -130,7 +130,7 @@ $(function() {
: remwharead::URI
- unescape_html()
-: remwharead::URI
+: remwharead::URI
- URI()
: remwharead::URI
diff --git a/docs/functions_rela.html b/docs/functions_rela.html
index fb6c675..634cc52 100644
--- a/docs/functions_rela.html
+++ b/docs/functions_rela.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/functions_type.html b/docs/functions_type.html
index e3278fd..c752129 100644
--- a/docs/functions_type.html
+++ b/docs/functions_type.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/hierarchy.html b/docs/hierarchy.html
index b8de523..7901caa 100644
--- a/docs/hierarchy.html
+++ b/docs/hierarchy.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/index.html b/docs/index.html
index e19bb33..08ad06b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/json_8hpp_source.html b/docs/json_8hpp_source.html
index ae40600..1b30e20 100644
--- a/docs/json_8hpp_source.html
+++ b/docs/json_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/remwharead_8hpp_source.html b/docs/remwharead_8hpp_source.html
index c3b7e76..033c973 100644
--- a/docs/remwharead_8hpp_source.html
+++ b/docs/remwharead_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/rss_8hpp_source.html b/docs/rss_8hpp_source.html
index 6ef2b8c..65c65fa 100644
--- a/docs/rss_8hpp_source.html
+++ b/docs/rss_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
diff --git a/docs/search/all_f.js b/docs/search/all_f.js
index 3e83984..298b68d 100644
--- a/docs/search/all_f.js
+++ b/docs/search/all_f.js
@@ -1,5 +1,5 @@
var searchData=
[
- ['unescape_5fhtml',['unescape_html',['../classremwharead_1_1URI.html#a37c36dbf8ccc03c8cc132be29e49f4ec',1,'remwharead::URI']]],
+ ['unescape_5fhtml',['unescape_html',['../classremwharead_1_1URI.html#ac98523e5fb23ca4adab57a7caa473eaa',1,'remwharead::URI']]],
['uri',['URI',['../classremwharead_1_1URI.html',1,'remwharead::URI'],['../classremwharead_1_1URI.html#acda508768b1fd3b4df81ea66dd4fab87',1,'remwharead::URI::URI()']]]
];
diff --git a/docs/search/functions_a.js b/docs/search/functions_a.js
index 6441156..f36d1c9 100644
--- a/docs/search/functions_a.js
+++ b/docs/search/functions_a.js
@@ -1,5 +1,5 @@
var searchData=
[
- ['unescape_5fhtml',['unescape_html',['../classremwharead_1_1URI.html#a37c36dbf8ccc03c8cc132be29e49f4ec',1,'remwharead::URI']]],
+ ['unescape_5fhtml',['unescape_html',['../classremwharead_1_1URI.html#ac98523e5fb23ca4adab57a7caa473eaa',1,'remwharead::URI']]],
['uri',['URI',['../classremwharead_1_1URI.html#acda508768b1fd3b4df81ea66dd4fab87',1,'remwharead::URI']]]
];
diff --git a/docs/search_8hpp_source.html b/docs/search_8hpp_source.html
index c3a3a2a..54819da 100644
--- a/docs/search_8hpp_source.html
+++ b/docs/search_8hpp_source.html
@@ -22,7 +22,7 @@
remwharead
- 0.8.0
+ 0.8.1
|
@@ -71,10 +71,10 @@ $(function() {
17 #ifndef REMWHAREAD_SEARCH_HPP 18 #define REMWHAREAD_SEARCH_HPP 46 explicit Search(
const list<Database::entry> &entries);
60 const list<Database::entry>
search_tags(
string expression,
61 const bool is_re)
const;
75 const list<Database::entry>
search_all(
string expression,
76 const bool is_re)
const;
93 const bool is_re)
const;
96 const list<Database::entry> _entries;
109 const vector<vector<string>> parse_expression(
string expression)
const;
116 inline const string to_lowercase(
const string &str)
const;
120 #endif // REMWHAREAD_SEARCH_HPP Search in database entries.
Definition: search.hpp:38
-
const list< Database::entry > search_all(string expression, const bool is_re) const
Search in full text of database entries.
Definition: search.cpp:126
-
const list< Database::entry > search_tags(string expression, const bool is_re) const
Search in tags of database entries.
Definition: search.cpp:82
-
Search(const list< Database::entry > &entries)
Defines the entries to search.
Definition: search.cpp:38
-
const list< Database::entry > search_all_threaded(string expression, const bool is_re) const
Spawn threads of search_all(), if it seems sensible.
Definition: search.cpp:204
+
const list< Database::entry > search_all(string expression, const bool is_re) const
Search in full text of database entries.
Definition: search.cpp:131
+
const list< Database::entry > search_tags(string expression, const bool is_re) const
Search in tags of database entries.
Definition: search.cpp:87
+
Search(const list< Database::entry > &entries)
Defines the entries to search.
Definition: search.cpp:36
+
const list< Database::entry > search_all_threaded(string expression, const bool is_re) const
Spawn threads of search_all(), if it seems sensible.
Definition: search.cpp:209