17 #ifndef COMMON_VALUE_OF_STRING_HXX
18 #define COMMON_VALUE_OF_STRING_HXX
24 namespace awali {
namespace internal {
27 typename M::value_t
to_value_of(M
const& set,
const std::string& str) {
30 auto result = set.parse(str,i);
36 ss <<
"String " << str <<
" is not a proper representation of a value of ";
53 ss <<
"String " << str <<
" is not a proper representation of a word of ";
60 typename M::genset_t::letter_t
63 size_t i = str.size();
65 auto result = set.genset().parse_one_letter(str,i);
71 ss <<
"String " << str <<
" is not a proper representation of a letter of ";
any_t word_t
Type for words; it is an alias to any_t since the precise type depends on the context (most of the ti...
Definition: typedefs.hh:67
M::genset_t::word_t to_word_of(M const &set, const std::string &str)
Definition: to_value_of.hxx:45
M::value_t to_value_of(M const &set, const std::string &str)
Definition: to_value_of.hxx:27
M::genset_t::letter_t to_letter_of(M const &set, const std::string &str)
Definition: to_value_of.hxx:61
auto get_wordset(const L &labelset) -> typename labelset_trait< L >::wordset_t
Definition: traits.hh:232
Main namespace of Awali.
Definition: ato.hh:22
Exceptions thrown during parsing.
Definition: parse_exception.hh:26