NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
stringparser.cpp File Reference
#include "stringparser.hpp"
#include "stringfunctions.hpp"
#include "stringexpression.hpp"
#include <algorithm>
#include "../utils/timer.hpp"
#include "../structures.hpp"
Include dependency graph for stringparser.cpp:

Go to the source code of this file.

Namespaces

namespace  NumeRe
 

Functions

std::string removeQuotationMarks (const std::string &sString)
 This function simply removes the surrounding quotation marks. More...
 
std::string addQuotationMarks (const std::string &sString)
 This function simply adds the surrounding quotation marks. More...
 
static size_t NumeRe::getOperatorPrecedence (StringView oprt)
 Static function to obtain the passed operator's precedence. More...
 
static void NumeRe::finalizeStack (std::vector< StringStackItem > &rpnStack)
 Static function to finalize the if-else logic in this stack. More...
 
static std::vector< StringStackItemNumeRe::convertToStack (const std::vector< StringView > &vTokens)
 Static function to convert the tokens to a RPN stack. More...
 

Variables

value_type vAns
 

Function Documentation

◆ addQuotationMarks()

std::string addQuotationMarks ( const std::string &  sString)

This function simply adds the surrounding quotation marks.

Parameters
sStringconst std::string&
Returns
std::string

Definition at line 96 of file stringfunctions.hpp.

Referenced by NumeRe::StringParser::numToString().

◆ removeQuotationMarks()

std::string removeQuotationMarks ( const std::string &  sString)

This function simply removes the surrounding quotation marks.

Parameters
sStringconst std::string&
Returns
std::string

Definition at line 79 of file stringfunctions.hpp.

Referenced by NumeRe::StringParser::storeStringToStringObject().

Variable Documentation

◆ vAns