20#ifndef PALUDIS_GUARD_PALUDIS_DESTRINGIFY_HH
21#define PALUDIS_GUARD_PALUDIS_DESTRINGIFY_HH 1
53 DestringifyError(
const std::string & str)
noexcept;
70 template <
typename Type_,
typename Exception_>
78 std::istringstream ss(s);
81 if (! ss.eof() || ss.fail())
92 template <
typename Exception_>
109 template <
typename Exception_>
121 else if (s ==
"false")
133 template <
typename Exception_>
154 template <
typename Type_,
typename Exception_ = De
stringifyError>
158 throw Exception_(
"is empty");
Type_ destringify(const std::string &s)
Definition destringify.hh:155
#define PALUDIS_VISIBLE
Definition attributes.hh:59
Definition destringify.hh:64
Definition about_metadata-fwd.hh:24
static bool do_destringify(const std::string &s)
Definition destringify.hh:115
static char do_destringify(const std::string &s)
Definition destringify.hh:139
static std::string do_destringify(const std::string &s)
Definition destringify.hh:98
Definition destringify.hh:72
static Type_ do_destringify(const std::string &s)
Definition destringify.hh:76