cxWidgets 1.0
Functions
helpers.cpp File Reference
#include "helpers.h"
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include <fstream>
#include <algorithm>
#include <cctype>
#include <regex>
#include <memory>
#include <set>
#include <ctime>
#include <cmath>
Include dependency graph for helpers.cpp:

Functions

int colLetterToIndex (const string &pCol)
 
string colIndexToLetter (int pCol)
 
bool parseCellRef (const string &pRef, int &pRow, int &pCol)
 
bool tryParseDouble (const string &pStr, double &pVal)
 
bool getCellNumericValue (cxGrid &pGrid, int pRow, int pCol, double &pVal)
 
bool parseRange (const string &pRange, int &pStartRow, int &pStartCol, int &pEndRow, int &pEndCol)
 
bool collectValues (cxGrid &pGrid, const string &pArgs, vector< double > &pValues, string &pErrorMsg)
 
bool evaluateFormula (cxGrid &pGrid, const string &pFormula, string &pResult, string &pErrorMsg)
 
bool saveToFile (cxGrid &pGrid, const string &pFilePath, string &pErrorMsg)
 
bool loadFromFile (cxGrid &pGrid, const string &pFilePath, string &pErrorMsg)
 

Function Documentation

◆ colIndexToLetter()

string colIndexToLetter ( int  pCol)

Referenced by collectValues().

◆ collectValues()

bool collectValues ( cxGrid pGrid,
const string &  pArgs,
vector< double > &  pValues,
string &  pErrorMsg 
)

◆ colLetterToIndex()

int colLetterToIndex ( const string &  pCol)

Referenced by parseCellRef().

◆ evaluateFormula()

bool evaluateFormula ( cxGrid pGrid,
const string &  pFormula,
string &  pResult,
string &  pErrorMsg 
)

◆ getCellNumericValue()

bool getCellNumericValue ( cxGrid pGrid,
int  pRow,
int  pCol,
double &  pVal 
)

◆ loadFromFile()

bool loadFromFile ( cxGrid pGrid,
const string &  pFilePath,
string &  pErrorMsg 
)

◆ parseCellRef()

bool parseCellRef ( const string &  pRef,
int &  pRow,
int &  pCol 
)

◆ parseRange()

bool parseRange ( const string &  pRange,
int &  pStartRow,
int &  pStartCol,
int &  pEndRow,
int &  pEndCol 
)

References parseCellRef().

Referenced by collectValues().

◆ saveToFile()

bool saveToFile ( cxGrid pGrid,
const string &  pFilePath,
string &  pErrorMsg 
)

◆ tryParseDouble()

bool tryParseDouble ( const string &  pStr,
double &  pVal 
)