NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "stringdatastructures.hpp"
#include "../../kernel.hpp"
#include "../utils/filecheck.hpp"
#include <boost/tokenizer.hpp>
#include <regex>
#include <sstream>
#include <libsha.hpp>
Go to the source code of this file.
Macros | |
#define | DEFAULT_NUM_ARG INT_MIN |
#define | NEWSTRING (char)23 |
Enumerations | |
enum | NumberBase { LOG , BIN , OCT , HEX } |
Functions | |
string | removeMaskedStrings (const std::string &sString) |
This function removes the escape characters from the passed string. More... | |
string | removeQuotationMarks (const std::string &sString) |
This function simply removes the surrounding quotation marks. More... | |
string | addQuotationMarks (const std::string &sString) |
This function simply adds the surrounding quotation marks. More... | |
static StringVector | strfnc_to_string (StringFuncArgs &funcArgs) |
Implementation of the to_string() function. More... | |
static std::string | createLaTeXExponent (const std::string &sExp, bool negative) |
Simple helper to create a LaTeX exponent from a string. More... | |
static std::string | formatNumberToTex (const mu::value_type &number, size_t precision=0) |
This function converts a number into a tex string. More... | |
static StringVector | strfnc_to_tex (StringFuncArgs &funcArgs) |
Implementation of the to_tex() function. More... | |
static StringVector | strfnc_to_uppercase (StringFuncArgs &funcArgs) |
Implementation of the to_uppercase() function. More... | |
static StringVector | strfnc_to_lowercase (StringFuncArgs &funcArgs) |
Implementation of the to_lowercase() function. More... | |
static StringVector | strfnc_getenvvar (StringFuncArgs &funcArgs) |
Implementation of the getenvvar() function. More... | |
static StringVector | strfnc_getFileParts (StringFuncArgs &funcArgs) |
Implementation of the getfileparts() function. More... | |
static StringVector | strfnc_getfilelist (StringFuncArgs &funcArgs) |
Implementation of the getfilelist() function. More... | |
static StringVector | strfnc_getfolderlist (StringFuncArgs &funcArgs) |
Implementation of the getfolderlist() function. More... | |
static StringVector | strfnc_strlen (StringFuncArgs &funcArgs) |
Implementation of the strlen() function. More... | |
static StringVector | strfnc_getmatchingparens (StringFuncArgs &funcArgs) |
Implementation of the getmatchinparens() function. More... | |
static StringVector | strfnc_ascii (StringFuncArgs &funcArgs) |
Implementation of the ascii() function. More... | |
static StringVector | strfnc_isblank (StringFuncArgs &funcArgs) |
Implementation of the is_blank() function. More... | |
static StringVector | strfnc_isalnum (StringFuncArgs &funcArgs) |
Implementation of the is_alnum() function. More... | |
static StringVector | strfnc_isalpha (StringFuncArgs &funcArgs) |
Implementation of the is_alpha() function. More... | |
static StringVector | strfnc_iscntrl (StringFuncArgs &funcArgs) |
Implementation of the is_cntrl() function. More... | |
static StringVector | strfnc_isdigit (StringFuncArgs &funcArgs) |
Implementation of the is_digit() function. More... | |
static StringVector | strfnc_isdir (StringFuncArgs &funcArgs) |
Implementation of the is_dir() function. More... | |
static StringVector | strfnc_isfile (StringFuncArgs &funcArgs) |
Implementation of the is_file() function. More... | |
static StringVector | strfnc_isgraph (StringFuncArgs &funcArgs) |
Implementation of the is_graph() function. More... | |
static StringVector | strfnc_islower (StringFuncArgs &funcArgs) |
Implementation of the is_lower() function. More... | |
static StringVector | strfnc_isprint (StringFuncArgs &funcArgs) |
Implementation of the is_print() function. More... | |
static StringVector | strfnc_ispunct (StringFuncArgs &funcArgs) |
Implementation of the is_punct() function. More... | |
static StringVector | strfnc_isspace (StringFuncArgs &funcArgs) |
Implementation of the is_space() function. More... | |
static StringVector | strfnc_isupper (StringFuncArgs &funcArgs) |
Implementation of the is_upper() function. More... | |
static StringVector | strfnc_isxdigit (StringFuncArgs &funcArgs) |
Implementation of the is_xdigit() function. More... | |
static StringVector | strfnc_to_char (StringFuncArgs &funcArgs) |
Implementation of the to_char() function. More... | |
static StringVector | strfnc_and (StringFuncArgs &funcArgs) |
Implementation of the and() function. More... | |
static StringVector | strfnc_or (StringFuncArgs &funcArgs) |
Implementation of the or() function. More... | |
static StringVector | strfnc_xor (StringFuncArgs &funcArgs) |
Implementation of the xor() function. More... | |
static StringVector | strfnc_findfile (StringFuncArgs &funcArgs) |
Implementation of the findfile() function. More... | |
static StringVector | strfnc_split (StringFuncArgs &funcArgs) |
Implementation of the split() function. More... | |
static StringVector | strfnc_to_time (StringFuncArgs &funcArgs) |
Implementation of the to_time() function. More... | |
static StringVector | strfnc_strfnd (StringFuncArgs &funcArgs) |
Implementation of the strfnd() function. More... | |
static StringVector | strfnc_strfndall (StringFuncArgs &funcArgs) |
Implementation of the strfndall() function. More... | |
static StringVector | strfnc_strmatchall (StringFuncArgs &funcArgs) |
Implementation of the strmatchall() function. More... | |
static StringVector | strfnc_strmatch (StringFuncArgs &funcArgs) |
Implementation of the strmatch() function. More... | |
static StringVector | strfnc_str_not_match (StringFuncArgs &funcArgs) |
Implementation of the str_not_match() function. More... | |
static StringVector | strfnc_strrfnd (StringFuncArgs &funcArgs) |
Implementation of the strrfnd() function. More... | |
static StringVector | strfnc_strrmatch (StringFuncArgs &funcArgs) |
Implementation of the strrmatch() function. More... | |
static StringVector | strfnc_str_not_rmatch (StringFuncArgs &funcArgs) |
Implementation of the str_not_rmatch() function. More... | |
static StringVector | strfnc_findparam (StringFuncArgs &funcArgs) |
Implementation of the findparam() function. More... | |
static StringVector | strfnc_substr (StringFuncArgs &funcArgs) |
Implementation of the substr() function. More... | |
static StringVector | strfnc_repeat (StringFuncArgs &funcArgs) |
Implementation of the repeat() function. More... | |
static std::string | padWithZeros (int nTime, size_t nLength) |
Creates a padding string full of 0 . More... | |
static StringVector | strfnc_timeformat (StringFuncArgs &funcArgs) |
Implementation of the timeformat() function. More... | |
static StringVector | strfnc_weekday (StringFuncArgs &funcArgs) |
Implementation of the weekday() function. More... | |
static StringVector | strfnc_char (StringFuncArgs &funcArgs) |
Implementation of the char() function. More... | |
static StringVector | strfnc_getopt (StringFuncArgs &funcArgs) |
Implementation of the getopt() function. More... | |
static StringVector | strfnc_replace (StringFuncArgs &funcArgs) |
Implementation of the replace() function. More... | |
static long long int | convertBaseToDecimal (StringView value, NumberBase base) |
Static helper function for converting number bases into the decimal base. More... | |
static double | extractLaTeXExponent (std::string &sExpr) |
Simple helper to parse the exponents in LaTeX format. More... | |
static StringVector | strfnc_textparse (StringFuncArgs &funcArgs) |
Implementation of the textparse() function. More... | |
static StringVector | strfnc_locate (StringFuncArgs &funcArgs) |
Implementation of the locate() function. More... | |
static StringVector | strfnc_strunique (StringFuncArgs &funcArgs) |
Implementation of the strunique() function. More... | |
static StringVector | strfnc_getkeyval (StringFuncArgs &funcArgs) |
Implementation of the getkeyval() function. More... | |
static StringVector | strfnc_findtoken (StringFuncArgs &funcArgs) |
Implementation of the findtoken() function. More... | |
static StringVector | strfnc_replaceall (StringFuncArgs &funcArgs) |
Implementation of the replaceall() function. More... | |
static StringVector | strfnc_strip (StringFuncArgs &funcArgs) |
Implementation of the strip() function. More... | |
static StringVector | strfnc_regex (StringFuncArgs &funcArgs) |
Implementation of the regex() function. More... | |
static StringVector | strfnc_cnt (StringFuncArgs &funcArgs) |
Implementation of the cnt() function. More... | |
static StringVector | strfnc_num (StringFuncArgs &funcArgs) |
Implementation of the num() function. More... | |
static StringVector | strfnc_logtoidx (StringFuncArgs &funcArgs) |
Implementation of the logtoidx() function. More... | |
static StringVector | strfnc_idxtolog (StringFuncArgs &funcArgs) |
Implementation of the idxtolog() function. More... | |
static StringVector | strfnc_min (StringFuncArgs &funcArgs) |
Implementation of the min() function. More... | |
static StringVector | strfnc_max (StringFuncArgs &funcArgs) |
Implementation of the max() function. More... | |
static StringVector | strfnc_sum (StringFuncArgs &funcArgs) |
Implementation of the sum() function. More... | |
static StringVector | strfnc_dectobase (StringFuncArgs &funcArgs) |
Implementation of the dectobase() function. More... | |
static StringVector | strfnc_basetodec (StringFuncArgs &funcArgs) |
Implementation of the basetodec() function. More... | |
static StringVector | strfnc_justify (StringFuncArgs &funcArgs) |
Implementation of the justify function. Each string in a std::vector of strings is filled with whitespaces until they are all the same length. More... | |
static StringVector | strfnc_getlasterror (StringFuncArgs &funcArgs) |
Implementation of the getlasterror() function. More... | |
static StringVector | strfnc_getversioninfo (StringFuncArgs &funcArgs) |
Implementation of the getversioninfo() function. More... | |
static StringVector | strfnc_getfileinfo (StringFuncArgs &funcArgs) |
Implementation of the getfileinfo() function. More... | |
static StringVector | strfnc_sha256 (StringFuncArgs &funcArgs) |
Implementation of the sha256() function. More... | |
static std::map< std::string, StringFuncHandle > | getStringFuncHandles () |
This static function is used to construct the string map. More... | |
#define DEFAULT_NUM_ARG INT_MIN |
Definition at line 28 of file stringfunctions.hpp.
#define NEWSTRING (char)23 |
Definition at line 30 of file stringfunctions.hpp.
enum NumberBase |
Enumerator | |
---|---|
LOG | |
BIN | |
OCT | |
HEX |
Definition at line 1553 of file stringfunctions.hpp.
string addQuotationMarks | ( | const std::string & | sString | ) |
This function simply adds the surrounding quotation marks.
sString | const std::string& |
Definition at line 96 of file stringfunctions.hpp.
Referenced by NumeRe::StringParser::numToString().
|
static |
Static helper function for converting number bases into the decimal base.
value | StringView |
base | ValueBase |
Definition at line 1571 of file stringfunctions.hpp.
References BIN, HEX, fast_float::hex, intPower(), StringViewBase::length(), LOG, OCT, StringViewBase::to_string(), and toLowerCase().
Referenced by strfnc_basetodec(), and strfnc_textparse().
|
static |
Simple helper to create a LaTeX exponent from a string.
sExp | const std::string& |
negative | bool |
Definition at line 135 of file stringfunctions.hpp.
Referenced by formatNumberToTex().
|
static |
Simple helper to parse the exponents in LaTeX format.
sExpr | std::string& |
Definition at line 1613 of file stringfunctions.hpp.
Referenced by strfnc_textparse().
|
static |
This function converts a number into a tex string.
number | const mu::value_type& |
precision | size_t |
Definition at line 150 of file stringfunctions.hpp.
References createLaTeXExponent(), NumeReKernel::getInstance(), Settings::getPrecision(), NumeReKernel::getSettings(), replaceAll(), and toString().
Referenced by strfnc_to_tex().
|
static |
This static function is used to construct the string map.
This function is only called once during the construction of the string parser class instance.
Definition at line 2684 of file stringfunctions.hpp.
References DBL_VALOPT, NOARGS, STR, STR_DBL, STR_STR, STR_STR_STR_VALOPT_VALOPT, STR_STR_STROPT, STR_STR_VALOPT, STR_STR_VALOPT_VALOPT, STR_STROPT, STR_VAL, STR_VAL_VALOPT, STR_VAL_VALOPT_STROPT, STR_VALOPT, strfnc_and(), strfnc_ascii(), strfnc_basetodec(), strfnc_char(), strfnc_cnt(), strfnc_dectobase(), strfnc_findfile(), strfnc_findparam(), strfnc_findtoken(), strfnc_getenvvar(), strfnc_getfileinfo(), strfnc_getfilelist(), strfnc_getFileParts(), strfnc_getfolderlist(), strfnc_getkeyval(), strfnc_getlasterror(), strfnc_getmatchingparens(), strfnc_getopt(), strfnc_getversioninfo(), strfnc_idxtolog(), 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_justify(), strfnc_locate(), strfnc_logtoidx(), strfnc_max(), strfnc_min(), strfnc_num(), strfnc_or(), 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_strunique(), strfnc_substr(), strfnc_sum(), strfnc_textparse(), strfnc_timeformat(), strfnc_to_char(), strfnc_to_lowercase(), strfnc_to_string(), strfnc_to_tex(), strfnc_to_time(), strfnc_to_uppercase(), strfnc_weekday(), strfnc_xor(), and VAL.
Referenced by NumeRe::StringParser::StringParser().
|
static |
Creates a padding string full of 0
.
nTime | int |
nLength | size_t |
Definition at line 1369 of file stringfunctions.hpp.
References toString().
Referenced by strfnc_timeformat().
string removeMaskedStrings | ( | const std::string & | sString | ) |
This function removes the escape characters from the passed string.
sString | const std::string& |
Definition at line 42 of file stringfunctions.hpp.
Referenced by NumeRe::StringLogicParser::prepareComparisonValues(), prepareStringsForDialog(), and NumeReWindow::UpdatePackageMenu().
string removeQuotationMarks | ( | const std::string & | sString | ) |
This function simply removes the surrounding quotation marks.
sString | const std::string& |
Definition at line 79 of file stringfunctions.hpp.
Referenced by NumeRe::StringFuncHandler::applySpecialStringFuncs(), NumeRe::StringFuncHandler::argumentParser(), FileSystem::cleanPath(), cmd_pack(), Plot::createDataLegends(), Plot::createStdPlot(), dialogCommand(), CommandLineParser::getExprAsFileName(), CommandLineParser::getFileParameterValue(), CommandLineParser::getParameterValueAsString(), moveOrCopyFiles(), prepareStringsForDialog(), readFromFile(), NumeRe::StringParser::storeStringToStringObject(), and windowCommand().
|
static |
Implementation of the and() function.
funcArgs | StringFuncArgs& |
Definition at line 824 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the ascii() function.
funcArgs | StringFuncArgs& |
Definition at line 369 of file stringfunctions.hpp.
References StringViewBase::length(), StringVector::push_back(), StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the basetodec() function.
funcArgs | StringFuncArgs& |
Definition at line 2466 of file stringfunctions.hpp.
References BIN, convertBaseToDecimal(), HEX, OCT, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the char() function.
funcArgs | StringFuncArgs& |
Definition at line 1488 of file stringfunctions.hpp.
References StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the cnt() function.
funcArgs | StringFuncArgs& |
Definition at line 2219 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg, StringFuncArgs::sMultiArg, and toString().
Referenced by getStringFuncHandles().
|
static |
Implementation of the dectobase() function.
funcArgs | StringFuncArgs& |
Definition at line 2419 of file stringfunctions.hpp.
References fast_float::hex, StringFuncArgs::nArg1, StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the findfile() function.
funcArgs | StringFuncArgs& |
Definition at line 894 of file stringfunctions.hpp.
References FileSystem::declareFileType(), fileExists(), StringViewBase::find(), Settings::getExePath(), Settings::getTokenPaths(), StringViewBase::length(), StringFuncArgs::opt, StringViewBase::rfind(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, FileSystem::setPath(), FileSystem::setTokens(), StringView::subview(), StringViewBase::to_string(), FileSystem::ValidFileName(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the findparam() function.
funcArgs | StringFuncArgs& |
Definition at line 1290 of file stringfunctions.hpp.
References findParameter(), StringViewBase::length(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringFuncArgs::sArg3, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the findtoken() function.
funcArgs | StringFuncArgs& |
Definition at line 2009 of file stringfunctions.hpp.
References StringViewBase::find(), StringViewBase::length(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringFuncArgs::sArg3, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getenvvar() function.
funcArgs | StringFuncArgs& |
Definition at line 239 of file stringfunctions.hpp.
References StringVector::empty_string(), StringViewBase::length(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getfileinfo() function.
funcArgs | StringFuncArgs& |
Definition at line 2603 of file stringfunctions.hpp.
References FileInfo::ATTR_COMPRESSED, FileInfo::ATTR_DIRECTORY, FileInfo::ATTR_ENCRYPTED, FileInfo::ATTR_HIDDEN, FileInfo::ATTR_OFFLINE, FileInfo::ATTR_READONLY, FileInfo::ATTR_SYSTEM, FileInfo::ATTR_TEMPORARY, FileInfo::creationTime, FileInfo::drive, FileInfo::ext, FileInfo::fileAttributes, FileInfo::filesize, FileSystem::getFileInfo(), NumeReKernel::getFileSystem(), NumeReKernel::getInstance(), FileInfo::modificationTime, FileInfo::name, FileInfo::path, StringVector::push_back(), StringVector::push_generic(), StringFuncArgs::sArg1, StringViewBase::to_string(), toCmdString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getfilelist() function.
funcArgs | StringFuncArgs& |
Definition at line 285 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringVector::empty_string(), getFileList(), StringFuncArgs::nArg1, StringFuncArgs::opt, StringVector::push_back(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getfileparts() function.
funcArgs | StringFuncArgs& |
Definition at line 261 of file stringfunctions.hpp.
References FileSystem::getFileParts(), StringViewBase::length(), StringFuncArgs::opt, StringVector::push_back(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getfolderlist() function.
funcArgs | StringFuncArgs& |
Definition at line 313 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringVector::empty_string(), getFolderList(), StringFuncArgs::nArg1, StringFuncArgs::opt, StringVector::push_back(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getkeyval() function.
funcArgs | StringFuncArgs& |
Definition at line 1959 of file stringfunctions.hpp.
References _lang, DEFAULT_NUM_ARG, Language::get(), StringArg::getRef(), StringVector::getRef(), NumeReKernel::issueWarning(), StringFuncArgs::nArg1, StringVector::push_generic(), StringFuncArgs::sArg2, StringFuncArgs::sArg3, StringFuncArgs::sMultiArg, StringViewBase::strip(), StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getlasterror() function.
funcArgs | StringFuncArgs& |
Definition at line 2554 of file stringfunctions.hpp.
References errorTypeToString(), getLastErrorMessage(), getLastErrorType(), and StringVector::push_back().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getmatchinparens() function.
funcArgs | StringFuncArgs& |
Definition at line 355 of file stringfunctions.hpp.
References getMatchingParenthesis(), StringFuncArgs::sArg1, toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getopt() function.
funcArgs | StringFuncArgs& |
Definition at line 1510 of file stringfunctions.hpp.
References StringVector::empty_string(), getArgAtPos(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the getversioninfo() function.
funcArgs | StringFuncArgs& |
Definition at line 2571 of file stringfunctions.hpp.
References AutoVersion::BUILD, AutoVersion::DATE, AutoVersion::MAJOR, AutoVersion::MINOR, AutoVersion::MONTH, StringVector::push_back(), AutoVersion::STATUS_SHORT, sVersion, toString(), AutoVersion::UBUNTU_VERSION_STYLE, and AutoVersion::YEAR.
Referenced by getStringFuncHandles().
|
static |
Implementation of the idxtolog() function.
funcArgs | StringFuncArgs& |
Definition at line 2305 of file stringfunctions.hpp.
References StringVector::getRef(), and StringFuncArgs::nMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_alnum() function.
funcArgs | StringFuncArgs& |
Definition at line 419 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_alpha() function.
funcArgs | StringFuncArgs& |
Definition at line 447 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_blank() function.
funcArgs | StringFuncArgs& |
Definition at line 391 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_cntrl() function.
funcArgs | StringFuncArgs& |
Definition at line 479 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_digit() function.
funcArgs | StringFuncArgs& |
Definition at line 511 of file stringfunctions.hpp.
References StringViewBase::length(), StringVector::push_back(), StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_dir() function.
funcArgs | StringFuncArgs& |
Definition at line 540 of file stringfunctions.hpp.
References is_dir(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_file() function.
funcArgs | StringFuncArgs& |
Definition at line 559 of file stringfunctions.hpp.
References is_file(), StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_graph() function.
funcArgs | StringFuncArgs& |
Definition at line 578 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_lower() function.
funcArgs | StringFuncArgs& |
Definition at line 606 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_print() function.
funcArgs | StringFuncArgs& |
Definition at line 644 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_punct() function.
funcArgs | StringFuncArgs& |
Definition at line 676 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_space() function.
funcArgs | StringFuncArgs& |
Definition at line 709 of file stringfunctions.hpp.
References StringViewBase::length(), Umlauts::lower, StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_upper() function.
funcArgs | StringFuncArgs& |
Definition at line 742 of file stringfunctions.hpp.
References StringViewBase::length(), StringVector::push_back(), StringFuncArgs::sArg1, Umlauts::upper, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the is_xdigit() function.
funcArgs | StringFuncArgs& |
Definition at line 774 of file stringfunctions.hpp.
References StringViewBase::length(), StringVector::push_back(), StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the justify function. Each string in a std::vector of strings is filled with whitespaces until they are all the same length.
funcArgs | StringFuncArgs& |
Definition at line 2493 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::length(), StringFuncArgs::nArg1, StringVector::push_back(), StringFuncArgs::sMultiArg, StringViewBase::strip(), and StringViewBase::to_string().
Referenced by getStringFuncHandles().
|
static |
Implementation of the locate() function.
funcArgs | StringFuncArgs& |
Definition at line 1828 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find(), StringViewBase::find_first_not_of(), StringViewBase::find_first_of(), StringViewBase::find_last_not_of(), StringViewBase::length(), StringFuncArgs::nArg1, StringVector::push_back(), StringFuncArgs::sArg2, StringFuncArgs::sMultiArg, StringViewBase::strip(), StringView::subview(), StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the logtoidx() function.
funcArgs | StringFuncArgs& |
Definition at line 2267 of file stringfunctions.hpp.
References StringVector::is_string(), StringFuncArgs::nMultiArg, StringVector::push_back(), and StringFuncArgs::sMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the max() function.
funcArgs | StringFuncArgs& |
Definition at line 2361 of file stringfunctions.hpp.
References StringVector::empty_string(), StringFuncArgs::sMultiArg, and StringViewBase::to_string().
Referenced by getStringFuncHandles().
|
static |
Implementation of the min() function.
funcArgs | StringFuncArgs& |
Definition at line 2336 of file stringfunctions.hpp.
References StringVector::empty_string(), StringFuncArgs::sMultiArg, and StringViewBase::to_string().
Referenced by getStringFuncHandles().
|
static |
Implementation of the num() function.
funcArgs | StringFuncArgs& |
Definition at line 2238 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg, StringFuncArgs::sMultiArg, and toString().
Referenced by getStringFuncHandles().
|
static |
Implementation of the or() function.
funcArgs | StringFuncArgs& |
Definition at line 847 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the regex() function.
funcArgs | StringFuncArgs& |
Definition at line 2124 of file stringfunctions.hpp.
References _lang, DEFAULT_NUM_ARG, Language::get(), SyntaxError::invalid_position, SyntaxError::INVALID_REGEX, StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, StringVector::push_back(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringView::subview(), StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the repeat() function.
funcArgs | StringFuncArgs& |
Definition at line 1349 of file stringfunctions.hpp.
References StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the replace() function.
funcArgs | StringFuncArgs& |
Definition at line 1532 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringVector::empty_string(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the replaceall() function.
funcArgs | StringFuncArgs& |
Definition at line 2046 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringVector::empty_string(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, replaceAll(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringFuncArgs::sArg3, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the sha256() function.
funcArgs | StringFuncArgs& |
Definition at line 2654 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, fileExists(), NumeReKernel::getFileSystem(), NumeReKernel::getInstance(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringViewBase::to_string(), FileSystem::ValidFileName(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the split() function.
funcArgs | StringFuncArgs& |
Definition at line 935 of file stringfunctions.hpp.
References StringVector::empty_string(), StringVector::push_back(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the str_not_match() function.
funcArgs | StringFuncArgs& |
Definition at line 1198 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find_first_not_of(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the str_not_rmatch() function.
funcArgs | StringFuncArgs& |
Definition at line 1267 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find_last_not_of(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strfnd() function.
funcArgs | StringFuncArgs& |
Definition at line 1057 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strfndall() function.
funcArgs | StringFuncArgs& |
Definition at line 1080 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, StringVector::push_back(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strip() function.
funcArgs | StringFuncArgs& |
Definition at line 2082 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringVector::empty_string(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringFuncArgs::sArg3, StringView::subview(), StringViewBase::to_string(), StringViewBase::trim_back(), StringViewBase::trim_front(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strlen() function.
funcArgs | StringFuncArgs& |
Definition at line 341 of file stringfunctions.hpp.
References StringViewBase::length(), StringFuncArgs::sArg1, toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strmatch() function.
funcArgs | StringFuncArgs& |
Definition at line 1175 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find_first_of(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strmatchall() function.
funcArgs | StringFuncArgs& |
Definition at line 1132 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, StringVector::push_back(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strrfnd() function.
funcArgs | StringFuncArgs& |
Definition at line 1221 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::length(), StringFuncArgs::nArg1, StringViewBase::rfind(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strrmatch() function.
funcArgs | StringFuncArgs& |
Definition at line 1244 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringViewBase::find_last_of(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StringViewBase::to_string(), toString(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the strunique() function.
funcArgs | StringFuncArgs& |
Definition at line 1905 of file stringfunctions.hpp.
References DEFAULT_NUM_ARG, StringFuncArgs::nArg1, StringVector::push_back(), StringVector::push_generic(), and StringFuncArgs::sMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the substr() function.
funcArgs | StringFuncArgs& |
Definition at line 1321 of file stringfunctions.hpp.
References StringVector::empty_string(), StringViewBase::length(), StringFuncArgs::nArg1, StringFuncArgs::nArg2, StringFuncArgs::sArg1, StringView::subview(), StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the sum() function.
funcArgs | StringFuncArgs& |
Definition at line 2386 of file stringfunctions.hpp.
References StringVector::empty_string(), StringFuncArgs::nMultiArg, StringFuncArgs::sMultiArg, and toString().
Referenced by getStringFuncHandles().
|
static |
Implementation of the textparse() function.
funcArgs | StringFuncArgs& |
Definition at line 1642 of file stringfunctions.hpp.
References BIN, convertBaseToDecimal(), CONVTYPE_VALUE, DEFAULT_NUM_ARG, StringVector::empty_string(), extractLaTeXExponent(), StringViewBase::find(), StringViewBase::find_first_not_of(), StringViewBase::front(), HEX, isConvertible(), StringViewBase::length(), LOG, StringFuncArgs::nArg1, StringFuncArgs::nArg2, OCT, StringVector::push_back(), replaceAll(), StringFuncArgs::sArg1, StringFuncArgs::sArg2, StripSpaces(), StrToCmplx(), StrToTime(), StringView::subview(), to_double(), StringViewBase::to_string(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the timeformat() function.
funcArgs | StringFuncArgs& |
Definition at line 1385 of file stringfunctions.hpp.
References StringFuncArgs::dArg1, date::year_month_day::day(), getCurrentTimeZone(), getTimeStampFromTimePoint(), StringViewBase::length(), time_stamp::m_hours, time_stamp::m_microsecs, time_stamp::m_millisecs, time_stamp::m_minutes, time_stamp::m_seconds, time_stamp::m_ymd, date::year_month_day::month(), padWithZeros(), StringFuncArgs::sArg1, StringViewBase::to_string(), to_timePoint(), toString(), StringArg::view(), and date::year_month_day::year().
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_char() function.
funcArgs | StringFuncArgs& |
Definition at line 803 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg.
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_lowercase() function.
funcArgs | StringFuncArgs& |
Definition at line 225 of file stringfunctions.hpp.
References StringFuncArgs::sArg1, StringViewBase::to_string(), toLowerCase(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_string() function.
funcArgs | StringFuncArgs& |
Definition at line 113 of file stringfunctions.hpp.
References StringVector::empty_string(), StringArg::getRef(), StringArg::is_string(), StringViewBase::length(), StringFuncArgs::sArg1, and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_tex() function.
funcArgs | StringFuncArgs& |
Definition at line 190 of file stringfunctions.hpp.
References StringFuncArgs::dArg1, formatNumberToTex(), and StringFuncArgs::nArg1.
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_time() function.
funcArgs | StringFuncArgs& |
Definition at line 965 of file stringfunctions.hpp.
References CONVTYPE_DATE_TIME, getCurrentTimeZone(), getTimePointFromTimeStamp(), getTimeStampFromTimePoint(), isConvertible(), StringViewBase::length(), time_stamp::m_hours, time_stamp::m_microsecs, time_stamp::m_millisecs, time_stamp::m_minutes, time_stamp::m_seconds, time_stamp::m_ymd, StringFuncArgs::sArg1, StringFuncArgs::sArg2, StrToInt(), StrToTime(), sys_time_now(), to_double(), StringViewBase::to_string(), toCmdString(), StringArg::view(), and date::year_month_day::year().
Referenced by getStringFuncHandles().
|
static |
Implementation of the to_uppercase() function.
funcArgs | StringFuncArgs& |
Definition at line 211 of file stringfunctions.hpp.
References StringFuncArgs::sArg1, StringViewBase::to_string(), toUpperCase(), and StringArg::view().
Referenced by getStringFuncHandles().
|
static |
Implementation of the weekday() function.
funcArgs | StringFuncArgs& |
Definition at line 1462 of file stringfunctions.hpp.
References _lang, StringFuncArgs::dArg1, DEFAULT_NUM_ARG, Language::getList(), getWeekDay(), StringFuncArgs::nArg1, and to_timePoint().
Referenced by getStringFuncHandles().
|
static |
Implementation of the xor() function.
funcArgs | StringFuncArgs& |
Definition at line 867 of file stringfunctions.hpp.
References StringFuncArgs::nMultiArg.
Referenced by getStringFuncHandles().