blob: 5a381502199fe8e3673e0a84c884f9b49218bd79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "urlreader.h"
namespace newsboat {
std::vector<std::string>& UrlReader::get_urls()
{
return urls;
}
std::vector<std::string>& UrlReader::get_tags(const std::string& url)
{
return tags[url];
}
std::vector<std::string> UrlReader::get_alltags()
{
std::vector<std::string> tmptags;
for (const auto& t : alltags) {
if (t.substr(0, 1) != "~") {
// std::copy_if would make this code less readable IMHO
// cppcheck-suppress useStlAlgorithm
tmptags.push_back(t);
}
}
return tmptags;
}
} // namespace newsboat
|