#include "QFormulaUtils.h" |
Inheritance Chart: | |||||
|
public:
QFormulaUtils() QFormulaUtils(const QFormulaUtils&) ~QFormulaUtils() static TClass* Class() static Int_t IndexVar(const Char_t* formula, const Char_t* variable, Int_t start = 0) virtual TClass* IsA() const QFormulaUtils& operator=(const QFormulaUtils&) static Int_t ReplaceVar(TString* formula, const Char_t* oldvar, const Char_t* newvar) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
This function reads formula, starting at position start, and looks for
variable string. It returns the index of the variable name occurrence if
found. It returns -1 if not. A variable name is considered to be any
alphanumeric expression that can also contain '_'.
This function replaces in formula all the occurences of variable with name oldvar by expression contained in newvar. It returns the number of replaced occurences.