FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

stringListOps.H File Reference

Operations on lists of strings. More...


Detailed Description

Operations on lists of strings.

InNamspace Foam

Source files

Definition in file stringListOps.H.

#include "src/OSspecific/POSIX/regExp.H"
#include "src/OpenFOAM/primitives/Lists/labelList.H"
#include "src/OpenFOAM/primitives/Lists/stringList.H"
#include "src/OpenFOAM/primitives/Lists/wordReList.H"
#include "src/OpenFOAM/primitives/Lists/wordReListMatcher.H"
Include dependency graph for stringListOps.H:

Go to the source code of this file.

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Functions

bool  findStrings (const wordReListMatcher &matcher, const std::string &str)
 Return true if string matches one of the regular expressions.
template<class Matcher , class StringType >
labelList  findMatchingStrings (const Matcher &, const UList< StringType > &, const bool invert=false)
 Return list indices for matching strings.
template<class StringType >
labelList  findStrings (const regExp &re, const UList< StringType > &lst, const bool invert=false)
 Return list indices for strings matching the regular expression.
template<class StringType >
labelList  findStrings (const char *rePattern, const UList< StringType > &lst, const bool invert=false)
 Return list indices for strings matching the regular expression.
template<class StringType >
labelList  findStrings (const std::string &rePattern, const UList< StringType > &lst, const bool invert=false)
 Return list indices for strings matching the regular expression.
template<class StringType >
labelList  findStrings (const wordRe &wre, const UList< StringType > &lst, const bool invert=false)
 Return list indices for strings matching the regular expression.
template<class StringType >
labelList  findStrings (const wordReListMatcher &matcher, const UList< StringType > &lst, const bool invert=false)
 Return list indices for strings matching one of the regular expression.
template<class Matcher , class StringListType >
StringListType  subsetMatchingStrings (const Matcher &, const StringListType &, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class StringListType >
StringListType  subsetStrings (const regExp &re, const StringListType &lst, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class StringListType >
StringListType  subsetStrings (const char *rePattern, const StringListType &lst, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class StringListType >
StringListType  subsetStrings (const std::string &rePattern, const StringListType &lst, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class StringListType >
StringListType  subsetStrings (const wordRe &wre, const StringListType &lst, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class StringListType >
StringListType  subsetStrings (const wordReListMatcher &matcher, const StringListType &lst, const bool invert=false)
 Extract elements of StringList when regular expression matches.
template<class Matcher , class StringListType >
void  inplaceSubsetMatchingStrings (const Matcher &, StringListType &, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.
template<class StringListType >
void  inplaceSubsetStrings (const regExp &re, StringListType &lst, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.
template<class StringListType >
void  inplaceSubsetStrings (const char *rePattern, StringListType &lst, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.
template<class StringListType >
void  inplaceSubsetStrings (const std::string &rePattern, StringListType &lst, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.
template<class StringListType >
void  inplaceSubsetStrings (const wordRe &wre, StringListType &lst, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.
template<class StringListType >
void  inplaceSubsetStrings (const wordReListMatcher &matcher, StringListType &lst, const bool invert=false)
 Inplace extract elements of StringList when regular expression matches.