NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Go to the source code of this file.
Functions | |
int | StrToInt (const std::string &) |
Converts a string into an integer. More... | |
int | findParameter (const std::string &sCmd, const std::string &sParam, const char cFollowing) |
This function searches the passed parameter in the passed command string. If something is found, the position of the parameter+1 is returned. More... | |
void | StripSpaces (std::string &) |
Removes leading and trailing white spaces and tabulator characters. More... | |
int findParameter | ( | const string & | sCmd, |
const string & | sParam, | ||
const char | cFollowing | ||
) |
This function searches the passed parameter in the passed command string. If something is found, the position of the parameter+1 is returned.
sCmd | const string& |
sParam | const string& |
cFollowing | const char |
This function is one of the most important ones in the whole application as it provides the support for the defined command syntax.
Definition at line 113 of file tools.cpp.
References toLowerCase().
Referenced by CodeAnalyzer::analyseCommands(), FunctionDefinition::appendComment(), FlowCtrl::calc(), cmd_close(), cmd_define(), cmd_get(), cmd_hline(), cmd_ifndefined(), cmd_load(), cmd_new(), cmd_quit(), cmd_redefine(), cmd_rename(), cmd_retouch(), cmd_save(), cmd_stats(), FlowCtrl::compile(), FunctionDefinition::convertToValues(), Plot::CoordSettings(), createHist1D(), createHist2D(), PackageManager::declareNewPackage(), FunctionDefinition::decodeDefinition(), NumeRe::StringParser::decodeStringParams(), FunctionDefinitionManager::defineFunc(), dialogCommand(), doc_Help(), editObject(), evaluateFittingParams(), Script::evaluateInstallInformation(), evaluateParameterValues(), Plot::evaluateSubplot(), evaluateTargetOptionInCommand(), FlowCtrl::extractFlagsAndIndexVariables(), findExtrema(), findSettingOption(), findZeroes(), getEventProcedures(), CommandLineParser::getFileParameterValue(), getIntervalDef(), getItemId(), Package::getOptionValue(), getParametersFromWindow(), getParameterValue(), CommandLineParser::getParameterValue(), CommandLineParser::getParameterValueAsNumericalValue(), CommandLineParser::getParameterValueAsString(), getTagValue(), getTargetTable(), getVarList(), NumeReKernel::handleComposeBlock(), CommandLineParser::hasParam(), FunctionDefinition::importFunction(), IntervalSet::IntervalSet(), MemoryManager::matchTableAsParameter(), parseLayoutCommand(), parseLayoutScript(), Plot::Plot(), plugin_histogram(), plugin_random(), plugin_statistics(), ProcedureElement::ProcedureElement(), readAndParseIntervals(), readAndParseLegacyIntervals(), Settings::set(), setParametersInWindow(), PlotData::setParams(), Odesolver::solve(), MemoryManager::sortElements(), Memory::sortElements(), NumeRe::Cluster::sortElements(), StringInternalMemory::sortElements(), strfnc_findparam(), swapTables(), and windowCommand().
void StripSpaces | ( | std::string & | sToStrip | ) |
Removes leading and trailing white spaces and tabulator characters.
sToStrip | std::string& |
Definition at line 463 of file stringtools.cpp.
Referenced by NumeReEditor::AbstrahizeSection(), PackageManager::addHelpIndex(), addLegends(), CodeAnalyzer::analyseCommands(), CodeAnalyzer::analyseFunctions(), NumeRe::StringParser::applyElementaryStringOperations(), NumeRe::StringFuncHandler::applySpecialStringFuncs(), applyValueHeuristics(), FlowCtrl::calc(), FunctionDefinitionManager::call(), FlowCtrl::checkParsingModeAndExpandDefinitions(), ProcedureElement::cleanCurrentLine(), FileSystem::cleanPath(), cmd_ifndefined(), cmd_install(), cmd_readline(), cmd_rename(), commandHandler(), FlowCtrl::compile(), NumeRe::StringLogicParser::concatenateStrings(), confirmOperation(), Plot::create2dPlot(), Plot::createDataLegends(), ProcedureVarFactory::createLocalClusters(), ProcedureVarFactory::createLocalInlineStrings(), ProcedureVarFactory::createLocalInlineVars(), ProcedureVarFactory::createLocalStrings(), ProcedureVarFactory::createLocalTables(), ProcedureVarFactory::createLocalVars(), ProcedureVarFactory::createProcedureArguments(), Plot::createStd3dPlot(), Plot::createStdPlot(), Plot::createSubPlotSet(), SymDefManager::createSymbol(), FunctionDefinition::decodeDefinition(), decodeNameSpace(), deleteCacheEntry(), differentiate(), doc_Help(), doc_HelpAsHTML(), editObject(), NumeRe::StringParser::eval(), FlowCtrl::evalHeader(), PackageManager::evalPluginCmd(), FlowCtrl::evalRangeBasedHeader(), NumeRe::StringLogicParser::evalStringLogic(), NumeRe::StringLogicParser::evalStringTernary(), evaluateFittingParams(), ProcedureVarFactory::evaluateProcedureArguments(), NumeReKernel::evaluateProcedureCalls(), Plot::evaluateSubplot(), Procedure::execute(), executeCommand(), NumeReKernel::executePlugins(), FlowCtrl::extractFlagsAndIndexVariables(), FlowCtrl::fillJumpTableAndExpandRecursives(), findArticleById(), findCommand(), findExtrema(), NumeRe::FindProcedureDefinition(), SearchController::FindProcedureDefinitionInLocalFile(), findZeroes(), fitDataSet(), FlowCtrl::for_loop(), Documentation::getArgAtPos(), getArgAtPos(), getDataElements(), NumeRe::StringParser::getDataForString(), NumeRe::DataBase::getDBFileContent(), FunctionDefinition::getDefinition(), CommandLineParser::getExprAsFileName(), CommandLineParser::getExprAsMathExpression(), Fitcontroller::getFitFunction(), getIndices(), Procedure::getInlined(), getIntervalForSearchFunctions(), Language::getLangFileContent(), getLastToken(), NumeReKernel::getline(), Includer::getNextLine(), Script::getNextScriptCommandFromScript(), Package::getOptionValue(), getParameterValue(), CommandLineParser::getParameterValueAsString(), NumeReKernel::handleCommandLineSource(), Procedure::handleIncludeSyntax(), Script::handleInstallInformation(), NumeReKernel::handleToCmd(), FunctionDefinition::importFunction(), isClusterCandidate(), FunctionDefinitionManager::isDefined(), listDirectory(), listFiles(), load_data(), loadDocumentationArticle(), DocumentationFile::loadFromFile(), PackageManager::loadPlugins(), NumeReKernel::MainLoop(), moveOrCopyFiles(), Includer::openIncludedFile(), FunctionDefinition::parse(), CommandLineParser::parse(), MemoryManager::parseEvery(), CommandLineParser::parseExprAsString(), parseLayoutCommand(), parseLayoutScript(), mu::ParserBase::ParseString(), parseStringOpt(), performMatrixOperation(), Plot::Plot(), plugin_histogram(), NumeRe::StringLogicParser::prepareComparisonValues(), FlowCtrl::prepareLocalVarsAndReplace(), Procedure::ProcCalc(), Procedure::procedureCmdInterface(), ProcedureElement::ProcedureElement(), Procedure::procedureInterface(), promptForUserInput(), FlowCtrl::range_based_for_loop(), NumeRe::CassyLabx::readFile(), NumeRe::CommaSeparatedValues::readFile(), NumeRe::JcampDX::readFile(), readFromFile(), NumeRe::JcampDX::readTable(), NumeRe::realignLangString(), removeObsoleteParentheses(), NumeRe::StringParser::replaceDataOccurence(), FlowCtrl::replaceLocalVars(), Procedure::replaceReturnVal(), replaceToTeX(), FunctionDefinitionManager::resolveRecursiveDefinitions(), CodeAnalyzer::run(), Plot::separateFunctionsAndData(), Settings::set(), FlowCtrl::setCommand(), PlotData::setParams(), Odesolver::solve(), NumeReEditor::sortSelection(), NumeRe::StringExpression::split(), FunctionDefinition::splitAndValidateArguments(), Script::startInstallation(), NumeRe::StringParser::storeStringResults(), strfnc_textparse(), stripComments(), swapTables(), taylor(), windowCommand(), Script::writeDocumentationArticle(), Script::writeLayout(), Script::writeProcedure(), Procedure::writeProcedure(), and writeToFile().
int StrToInt | ( | const std::string & | sString | ) |
Converts a string into an integer.
sString | const std::string& |
Definition at line 482 of file stringtools.cpp.
Referenced by determineWindowSize(), NumeRe::XLSXSpreadSheet::evalIndices(), evalMatOp(), Sorter::evaluateKeyList(), NumeRe::OpenDocumentSpreadSheet::expandLine(), NumeRe::SavitzkyGolayFilter::findColumn(), NumeReDebugger::gatherLoopBasedInformations(), getItemId(), NumeReWindow::gotoLine(), DuplicateCodeDialog::highlightSelection(), Settings::import_v1x(), Settings::load(), NumeRe::JcampDX::parseLine(), NumeReWindow::prepareSession(), Options::readAnalyzerOptionsFromConfig(), NumeRe::CassyLabx::readFile(), NumeRe::JcampDX::readFile(), NumeRe::JcampDX::readTable(), Settings::set(), strfnc_to_time(), SyntaxStyles::StrToColorNew(), and SyntaxStyles::StrToColorOld().