Go to the source code of this file.
Classes | |
class | Tuple2 |
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pair, but does not expose its members directly. More... | |
Namespaces | |
Foam::stringOps | |
Collection of static functions for various string-related operations. | |
Foam | |
Functions | |
std::string::size_type | count (const std::string &s, const char c) |
std::string::size_type | count (const char *s, const char c) |
bool | match (const UList< wordRe > &patterns, const std::string &text) |
template<class StringType , class UnaryPredicate > | |
StringType | quotemeta (const StringType &str, const UnaryPredicate &meta, const char quote='\\') |
string | expand (const std::string &s, const HashTable< string > &mapping, const char sigil='$') |
void | inplaceExpand (std::string &s, const HashTable< string > &mapping, const char sigil='$') |
void | inplaceExpand (std::string &s, const dictionary &dict, const bool allowEnv, const bool allowEmpty, const bool allowSubDict=false, const char sigil='$') |
string | expand (const std::string &s, const dictionary &dict, const char sigil='$') |
void | inplaceExpand (std::string &s, const dictionary &dict, const char sigil='$') |
string | expand (const std::string &s, const bool allowEmpty=false) |
void | inplaceExpand (std::string &s, const bool allowEmpty=false) |
bool | inplaceReplaceVar (std::string &s, const word &varName) |
template<class StringType , class UnaryPredicate > | |
StringType | validate (const std::string &str, const UnaryPredicate &accept, const bool invert=false) |
std::pair< size_t, size_t > | findTrim (const std::string &s, size_t pos=0, size_t len=std::string::npos) |
string | trimLeft (const std::string &s) |
void | inplaceTrimLeft (std::string &s) |
string | trimRight (const std::string &s) |
void | inplaceTrimRight (std::string &s) |
string | trim (const std::string &s) |
void | inplaceTrim (std::string &s) |
void | inplaceRemoveSpace (std::string &s) |
string | removeComments (const std::string &s) |
void | inplaceRemoveComments (std::string &s) |
string | lower (const std::string &s) |
void | inplaceLower (std::string &s) |
string | upper (const std::string &s) |
void | inplaceUpper (std::string &s) |
label | splitFunctionArgs (const std::string &str, wordRes &args, List< Tuple2< word, string >> &namedArgs) |
template<class StringType > | |
Foam::SubStrings< StringType > | split (const StringType &str, const char delim, const bool keepEmpty=false) |
template<class StringType > | |
Foam::SubStrings< StringType > | split (const StringType &str, const std::string &delim, const bool keepEmpty=false) |
template<class StringType > | |
Foam::SubStrings< StringType > | splitAny (const StringType &str, const std::string &delim) |
template<class StringType > | |
Foam::SubStrings< StringType > | splitFixed (const StringType &str, const std::string::size_type width, const std::string::size_type start=0) |
template<class StringType > | |
Foam::SubStrings< StringType > | splitSpace (const StringType &str) |
void | writeWrapped (OSstream &os, const std::string &str, const std::string::size_type width, const std::string::size_type indent=0, const bool escape=false) |
Original source file stringOps.H
Definition in file stringOps.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.