Verbosity: Fix "project" info not showing

- Make "project" verbosity imply "footnote", since verbose project
  info is shown using footnotes.  Fixes failing test in verbose.t.
- Convert "verbosity" variable to std::set for increased readability.
This commit is contained in:
Wilhelm Schuermann 2015-06-07 14:54:31 +02:00
parent 124f1fe4c8
commit ae692e07a6
6 changed files with 63 additions and 21 deletions

View file

@ -60,6 +60,25 @@ void wrapText (
lines.push_back (line);
}
////////////////////////////////////////////////////////////////////////////////
void split (
std::set<std::string>& results,
const std::string& input,
const char delimiter)
{
results.clear ();
std::string::size_type start = 0;
std::string::size_type i;
while ((i = input.find (delimiter, start)) != std::string::npos)
{
results.insert (input.substr (start, i - start));
start = i + 1;
}
if (input.length ())
results.insert (input.substr (start));
}
////////////////////////////////////////////////////////////////////////////////
void split (
std::vector<std::string>& results,