12#ifndef MCRL2_UTILITIES_PARSE_NUMBERS_H
13#define MCRL2_UTILITIES_PARSE_NUMBERS_H
31template <
typename Iterator>
34 assert((first != last) && !std::isspace(*first));
41 if (*i <
'0' || *i >
'9')
55 while (i != last && std::isspace(*i))
71 auto first = text.
begin();
72 auto last = text.
end();
75 while (first != last && std::isspace(*first))
100 std::vector<std::size_t> result;
102 auto first = text.
begin();
103 auto last = text.
end();
106 while (first != last && std::isspace(*first))
111 while (first != last)
115 result.push_back(value);
const_iterator end() const
const_iterator begin() const
Standard exception class for reporting runtime errors.
Exception classes for use in libraries and tools.
Iterator parse_next_natural_number(Iterator first, Iterator last, std::size_t &result)
std::size_t parse_natural_number(const std::string &text)
Parses a natural number from a string.
std::vector< std::size_t > parse_natural_number_sequence(const std::string &text)
Parses a sequence of natural numbers (separated by spaces) from a string.
A class that takes a linear process specification and checks all tau-summands of that LPS for conflue...