summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-06-13 17:09:24 +0300
committerTor Lillqvist <tml@collabora.com>2017-06-13 17:27:02 +0300
commit7b67e3fc5566f4172c69fa8460aea0c006e97a4d (patch)
tree7dd69ed70bdfe9b24ff9df589ccecbbfad93f072 /include
parentAvoid race between mbTerminate check and wait. (diff)
downloadcore-7b67e3fc5566f4172c69fa8460aea0c006e97a4d.tar.gz
core-7b67e3fc5566f4172c69fa8460aea0c006e97a4d.zip
Add FirstToken() and FirstRPNToken() functions that don't touch nIndex
... to FormulaTokenArray. Intermediate commit, these new functions aren't used yet. Change-Id: Ie505fe9dbd787087fa29f701d29ff9b4495c8699
Diffstat (limited to 'include')
-rw-r--r--include/formula/tokenarray.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index 575ead626286..109146c56b87 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -206,6 +206,7 @@ public:
void Clear();
void DelRPN();
FormulaToken* First() { nIndex = 0; return Next(); }
+ FormulaToken* FirstToken() const;
FormulaToken* Next();
FormulaToken* NextNoSpaces();
FormulaToken* GetNextName();
@@ -219,6 +220,7 @@ public:
FormulaToken* PeekPrevNoSpaces(); /// Only after Reset/First/Next/Last/Prev!
FormulaToken* PeekNextNoSpaces(); /// Only after Reset/First/Next/Last/Prev!
FormulaToken* FirstRPN() { nIndex = 0; return NextRPN(); }
+ FormulaToken* FirstRPNToken() const;
FormulaToken* NextRPN();
FormulaToken* LastRPN() { nIndex = nRPN; return PrevRPN(); }
FormulaToken* PrevRPN();