MTCT
Design Automation and Optimization for ETCS Railway Networks
Loading...
Searching...
No Matches
StringHelper.hpp File Reference
#include <algorithm>
#include <cctype>
#include <initializer_list>
#include <optional>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  cda_rail

Functions

std::string cda_rail::concatenate_string_views (std::initializer_list< std::string_view > parts)
 Concatenates multiple string views into a single string.
bool cda_rail::case_insensitive_str_equal (std::string_view a, std::string_view b)
 Compares two strings for equality, ignoring case.
void cda_rail::to_bool_optional_inplace (std::string_view s_view, std::optional< bool > &b)
 Parses a textual boolean value into an optional in place.
std::string cda_rail::sanitize (std::string s)
 Replaces every non-alphanumeric character by a hyphen.