Block-Structured AMR Software Framework
AMReX_String.H
Go to the documentation of this file.
1 #ifndef AMREX_STRING_H_
2 #define AMREX_STRING_H_
3 #include <AMReX_Config.H>
4 
5 #include <string>
6 #include <vector>
7 
8 namespace amrex {
9 
11  std::string toLower (std::string s);
12 
14  std::string toUpper (std::string s);
15 
18  std::string trim (std::string s, std::string const& space = " \t");
19 
21  std::string Concatenate (const std::string& root,
22  int num,
23  int mindigits = 5);
24 
26  std::vector<std::string> split (std::string const& s,
27  std::string const& sep = " \t");
28 }
29 
30 #endif
Definition: AMReX_Amr.cpp:49
std::string trim(std::string s, std::string const &space)
Definition: AMReX_String.cpp:25
std::string toLower(std::string s)
Converts all characters of the string into lower case based on std::locale.
Definition: AMReX_String.cpp:11
std::string Concatenate(const std::string &root, int num, int mindigits)
Returns rootNNNN where NNNN == num.
Definition: AMReX_String.cpp:34
std::vector< std::string > split(std::string const &s, std::string const &sep)
Split a string using given tokens in sep.
Definition: AMReX_String.cpp:42
std::string toUpper(std::string s)
Converts all characters of the string into uppercase based on std::locale.
Definition: AMReX_String.cpp:18