functionName Class Reference

A functionName is a word starting with '#'. More...

Inheritance diagram for functionName:
Collaboration diagram for functionName:

Public Member Functions

 functionName ()
 Construct null. More...
 
 functionName (const functionName &)
 Copy constructor. More...
 
 functionName (const word &)
 Copy constructor of word. More...
 
 functionName (const string &, const bool doStripInvalid=true)
 Copy constructor of string. More...
 
 functionName (const std::string &, const bool doStripInvalid=true)
 Copy constructor of std::string. More...
 
 functionName (const char *, const bool doStripInvalid=true)
 Copy constructor of character array. More...
 
 functionName (Istream &)
 Construct from Istream. More...
 
void operator= (const functionName &)
 
void operator= (const word &)
 
void operator= (const string &)
 
void operator= (const std::string &)
 
void operator= (const char *)
 
- Public Member Functions inherited from word
 word ()
 Construct null. More...
 
 word (const word &)
 Copy constructor. More...
 
 word (const char *, const bool doStripInvalid=true)
 Copy constructor of character array. More...
 
 word (const char *, const size_type, const bool doStripInvalid)
 Copy constructor with a maximum number of characters. More...
 
 word (const string &, const bool doStripInvalid=true)
 Copy constructor of string. More...
 
 word (const std::string &, const bool doStripInvalid=true)
 Copy constructor of std::string. More...
 
 word (Istream &)
 Construct from Istream. More...
 
word capitalise () const
 Return the word with the first letter capitalised. More...
 
void operator= (const word &)
 
void operator= (const string &)
 
void operator= (const std::string &)
 
void operator= (const char *)
 
- Public Member Functions inherited from string
 string ()
 Construct null. More...
 
 string (const std::string &)
 Construct from std::string. More...
 
 string (const string &)
 Copy constructor. More...
 
 string (string &&)
 Move constructor. More...
 
 string (const char *)
 Construct as copy of character array. More...
 
 string (const UList< char > &)
 Construct as copy of UList of character. More...
 
 string (const char *, const size_type)
 Construct as copy of specified number of characters. More...
 
 string (const char)
 Construct from a single character. More...
 
 string (const size_type, const char)
 Construct from copies of a single character. More...
 
 string (Istream &)
 Construct from Istream. More...
 
size_type count (const char) const
 Count and return the number of a given character in the string. More...
 
bool match (const std::string &) const
 True when strings match literally. More...
 
stringreplace (const string &oldStr, const string &newStr, size_type start=0)
 In this string replace first occurrence of sub-string oldStr. More...
 
string replace (const string &oldStr, const string &newStr, size_type start=0) const
 Replace first occurrence of sub-string oldStr with newStr. More...
 
stringreplaceAll (const string &oldStr, const string &newStr, size_type start=0)
 In this string replace all occurrences of sub-string oldStr. More...
 
string replaceAll (const string &oldStr, const string &newStr, size_type start=0) const
 Replace all occurrences of sub-string oldStr with newStr. More...
 
stringexpand (const bool allowEmpty=false)
 Expand initial tildes and all occurrences of environment variables. More...
 
bool removeRepeated (const char)
 Remove repeated characters returning true if string changed. More...
 
string removeRepeated (const char) const
 Return string with repeated characters removed. More...
 
bool removeTrailing (const char)
 Remove trailing character returning true if string changed. More...
 
string removeTrailing (const char) const
 Return string with trailing character removed. More...
 
bool removeTrailing (const string &)
 Remove trailing string returning true if string changed. More...
 
string removeTrailing (const string &) const
 Return string with trailing string removed. More...
 
void strip (const string &)
 Strip characters from the start and end of the string. More...
 
string operator() (const size_type i, const size_type n) const
 Return the sub-string from the i-th character for n characters. More...
 
string operator() (const size_type n) const
 Return the sub-string from the first character for n characters. More...
 
void operator= (const string &)
 
void operator= (string &&)
 
template<class String >
Foam::string quotemeta (const string &str, const char quote)
 

Static Public Member Functions

static bool valid (char)
 Is this character valid for a functionName. More...
 
- Static Public Member Functions inherited from word
static bool valid (char)
 Is this character valid for a word. More...
 
- Static Public Member Functions inherited from string
template<class String >
static bool valid (const string &)
 Is this string type valid? More...
 
template<class String >
static bool meta (const string &, const char quote='\\')
 Does this string have particular meta-characters? More...
 
template<class String >
static bool stripInvalid (string &)
 Strip invalid characters from the given string. More...
 
template<class String >
static String validate (const string &)
 Return a valid String from the given string. More...
 
template<class String >
static string quotemeta (const string &, const char quote='\\')
 Return a String with quoted meta-characters from the given string. More...
 

Static Public Attributes

static const char *const typeName = "functionName"
 
static int debug
 
static const functionName null
 An empty functionName. More...
 
- Static Public Attributes inherited from word
static const char *const typeName = "word"
 
static int debug
 
static const word null
 An empty word. More...
 
- Static Public Attributes inherited from string
static const char *const typeName = "string"
 
static int debug
 
static const string null
 An empty string. More...
 

Friends

Istreamoperator>> (Istream &, functionName &)
 
Ostreamoperator<< (Ostream &, const functionName &)
 

Detailed Description

A functionName is a word starting with '#'.

Source files

Definition at line 57 of file functionName.H.

Constructor & Destructor Documentation

◆ functionName() [1/7]

functionName ( )
inline

Construct null.

Definition at line 28 of file functionNameI.H.

Referenced by functionName::functionName().

Here is the caller graph for this function:

◆ functionName() [2/7]

functionName ( const functionName v)
inline

Copy constructor.

Definition at line 34 of file functionNameI.H.

◆ functionName() [3/7]

functionName ( const word w)
inlineexplicit

Copy constructor of word.

Definition at line 40 of file functionNameI.H.

References functionName::functionName().

Here is the call graph for this function:

◆ functionName() [4/7]

functionName ( const string s,
const bool  doStripInvalid = true 
)
inlineexplicit

Copy constructor of string.

Definition at line 47 of file functionNameI.H.

References functionName::functionName().

Here is the call graph for this function:

◆ functionName() [5/7]

functionName ( const std::string &  s,
const bool  doStripInvalid = true 
)
inlineexplicit

Copy constructor of std::string.

Definition at line 57 of file functionNameI.H.

References functionName::functionName().

Here is the call graph for this function:

◆ functionName() [6/7]

functionName ( const char *  s,
const bool  doStripInvalid = true 
)
inlineexplicit

Copy constructor of character array.

Definition at line 67 of file functionNameI.H.

◆ functionName() [7/7]

functionName ( Istream is)
explicit

Construct from Istream.

Words are treated as literals, strings with an auto-test

Definition at line 31 of file functionNameIO.C.

Member Function Documentation

◆ valid()

static bool valid ( char  )
inlinestatic

Is this character valid for a functionName.

◆ operator=() [1/5]

void operator= ( const functionName s)
inline

Definition at line 78 of file functionNameI.H.

References word::operator=().

Here is the call graph for this function:

◆ operator=() [2/5]

void operator= ( const word s)
inline

Definition at line 84 of file functionNameI.H.

References word::operator=().

Here is the call graph for this function:

◆ operator=() [3/5]

void operator= ( const string s)
inline

Definition at line 90 of file functionNameI.H.

References word::operator=().

Here is the call graph for this function:

◆ operator=() [4/5]

void operator= ( const std::string &  s)
inline

Definition at line 96 of file functionNameI.H.

References word::operator=().

Here is the call graph for this function:

◆ operator=() [5/5]

void operator= ( const char *  s)
inline

Definition at line 102 of file functionNameI.H.

References word::operator=().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator>>

Istream& operator>> ( Istream ,
functionName  
)
friend

◆ operator<<

Ostream& operator<< ( Ostream ,
const functionName  
)
friend

Member Data Documentation

◆ typeName

const char *const typeName = "functionName"
static

Definition at line 66 of file functionName.H.

Referenced by token::functionNameToken().

◆ debug

int debug
static

Definition at line 67 of file functionName.H.

◆ null

const Foam::functionName null
static

An empty functionName.

Definition at line 70 of file functionName.H.

Referenced by token::functionNameToken().


The documentation for this class was generated from the following files: