63#ifndef OPENSWMM_ENGINE_TOKENIZER_HPP
64#define OPENSWMM_ENGINE_TOKENIZER_HPP
99 static std::string_view
strip_comment(std::string_view line)
noexcept;
117 static std::vector<std::string>
tokenize(std::string_view line);
128 static std::vector<std::string_view>
tokenize_views(std::string_view line);
141 static void tokenize_views_into(std::string_view line, std::vector<std::string_view>& out);
163 static std::string
to_upper(std::string_view s);
173 static std::string_view
trim(std::string_view s)
noexcept;
185 static bool is_numeric(std::string_view sv)
noexcept;
193 static bool is_boolean(std::string_view sv)
noexcept;
212 static bool is_space(
char c)
noexcept {
return c ==
' ' || c ==
'\t'; }
223 static bool is_pure_csv_line(std::string_view line)
noexcept;
234 static bool comma_separates(std::string_view line, std::size_t pos,
bool pure_csv)
noexcept;