NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Simply container to provide the data for a StringView instance usable by all the string functions. More...
#include <stringdatastructures.hpp>
Public Member Functions | |
StringArg () | |
Default constructor. More... | |
StringArg (const std::string &sStr) | |
Construct a StringArg instance from a std::string instance. More... | |
StringArg (const StringArg &sStr) | |
Copy a StringArg instance. More... | |
StringArg & | operator= (const StringArg &sStr) |
StringArg assignment operator overload. More... | |
StringArg & | operator= (const std::string &sStr) |
StringArg assignment operator overload for a std::string instance. More... | |
bool | is_string () const |
Determine, whether the contained string represents a string literal. More... | |
StringView | view () const |
Get a view to the contained string. More... | |
std::string & | getRef () |
Get a reference to the contained string. More... | |
Private Attributes | |
std::string | m_data |
Simply container to provide the data for a StringView instance usable by all the string functions.
Definition at line 38 of file stringdatastructures.hpp.
|
inline |
Default constructor.
Definition at line 47 of file stringdatastructures.hpp.
|
inline |
Construct a StringArg instance from a std::string instance.
sStr | const std::string |
Definition at line 57 of file stringdatastructures.hpp.
|
inline |
Copy a StringArg instance.
sStr | const StringArg& |
Definition at line 66 of file stringdatastructures.hpp.
|
inline |
Get a reference to the contained string.
Definition at line 130 of file stringdatastructures.hpp.
References m_data.
Referenced by StringVector::evalIfElse(), strfnc_getkeyval(), and strfnc_to_string().
|
inline |
Determine, whether the contained string represents a string literal.
Definition at line 104 of file stringdatastructures.hpp.
References m_data.
Referenced by strfnc_to_string(), and view().
|
inline |
StringArg assignment operator overload for a std::string instance.
sStr | const std::string& |
Definition at line 91 of file stringdatastructures.hpp.
References m_data.
|
inline |
Get a view to the contained string.
Definition at line 115 of file stringdatastructures.hpp.
References is_string(), and m_data.
Referenced by strfnc_ascii(), strfnc_basetodec(), strfnc_char(), strfnc_dectobase(), strfnc_findfile(), strfnc_findparam(), strfnc_findtoken(), strfnc_getenvvar(), strfnc_getfileinfo(), strfnc_getfilelist(), strfnc_getFileParts(), strfnc_getfolderlist(), strfnc_getkeyval(), strfnc_getmatchingparens(), strfnc_getopt(), strfnc_isalnum(), strfnc_isalpha(), strfnc_isblank(), strfnc_iscntrl(), strfnc_isdigit(), strfnc_isdir(), strfnc_isfile(), strfnc_isgraph(), strfnc_islower(), strfnc_isprint(), strfnc_ispunct(), strfnc_isspace(), strfnc_isupper(), strfnc_isxdigit(), strfnc_locate(), strfnc_regex(), strfnc_repeat(), strfnc_replace(), strfnc_replaceall(), strfnc_sha256(), strfnc_split(), strfnc_str_not_match(), strfnc_str_not_rmatch(), strfnc_strfnd(), strfnc_strfndall(), strfnc_strip(), strfnc_strlen(), strfnc_strmatch(), strfnc_strmatchall(), strfnc_strrfnd(), strfnc_strrmatch(), strfnc_substr(), strfnc_textparse(), strfnc_timeformat(), strfnc_to_lowercase(), strfnc_to_string(), strfnc_to_time(), and strfnc_to_uppercase().
|
private |
Definition at line 41 of file stringdatastructures.hpp.
Referenced by getRef(), is_string(), operator=(), and view().