Block-Structured AMR Software Framework
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
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
8namespace 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
30 std::string join (std::vector<std::string> const& sv, char sep);
31
33 std::string join (std::vector<std::string> const& sv);
34}
35
36#endif
Definition AMReX_Amr.cpp:49
std::string join(std::vector< std::string > const &sv, char sep)
Join a vector of strings with given char sep as delimiter.
Definition AMReX_String.cpp:54
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