AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
String.hpp
1#pragma once
2
3#include <algorithm>
4#include <cctype>
5#include <locale>
6#include <string>
7
8namespace AMDiS
9{
11 std::string to_upper(std::string input);
12
14 std::string to_lower(std::string input);
15
17 std::string& ltrim(std::string& str);
18
20 std::string& rtrim(std::string& str);
21
23 std::string& trim(std::string& str);
24
26 std::string trim_copy(std::string const& str);
27
29 void replaceAll(std::string& str, std::string const& from, std::string const& to);
30
31} // end namspace AMDiS