parent
c49917c747
commit
7b9688fbb6
1 changed files with 4 additions and 6 deletions
|
@ -831,16 +831,14 @@ std::pair<int, int> parse_range(const std::string& str)
|
|||
|
||||
std::vector<std::pair<int, int>> parse_ranges(const std::string& str)
|
||||
{
|
||||
std::vector< std::pair< int, int >> to_return;
|
||||
std::vector<std::string> strs = utils::split(str);
|
||||
std::vector<std::string>::const_iterator i, i_end=strs.end();
|
||||
for(i = strs.begin(); i != i_end; ++i) {
|
||||
to_return.push_back(parse_range(*i));
|
||||
std::vector<std::pair<int, int>> to_return;
|
||||
for(const std::string& r : utils::split(str)) {
|
||||
to_return.push_back(parse_range(r));
|
||||
}
|
||||
|
||||
return to_return;
|
||||
}
|
||||
|
||||
|
||||
void ellipsis_truncate(std::string& str, const std::size_t size)
|
||||
{
|
||||
const std::size_t prev_size = str.length();
|
||||
|
|
Loading…
Add table
Reference in a new issue