20 #ifndef OPM_UTILITY_STRING_HPP 21 #define OPM_UTILITY_STRING_HPP 25 #include <type_traits> 30 template<
typename T,
typename U>
31 U& uppercase(
const T& src, U& dst );
33 template<
typename T >
34 typename std::decay< T >::type uppercase( T&& x ) {
35 typename std::decay< T >::type t( std::forward< T >( x ) );
36 return uppercase( t, t );
40 std::string ltrim_copy(
const T& s);
43 std::string rtrim_copy(
const T& s);
46 std::string trim_copy(
const T& s);
49 void replaceAll(T& data,
const T& toSearch,
const T& replace);
51 std::vector<std::string> split_string(
const std::string& input,
54 std::vector<std::string> split_string(
const std::string& input,
55 const std::string& delimiters);
57 std::string format_double(
double d);
59 std::optional<double> try_parse_double(
const std::string& token);
62 #endif //OPM_UTILITY_STRING_HPP This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30