19 inline std::string
trim(
const std::string &s)
21 const auto begin {s.find_first_not_of(
' ')};
22 const auto end {s.find_last_not_of(
' ')};
23 if (begin != std::string::npos && end != std::string::npos)
24 return s.substr(begin, end + 1);
bool parseRangeComment(const std::string &comment, double &from, double &to)
bool parseLabelComment(const std::string &comment, std::string &label)
bool parseTypeNameComment(const std::string &comment, std::string &type, std::string &name)
std::string trim(const std::string &s)