From c5ea6210eedf433ec247e0f6b439a58316f1d11a Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 28 Jun 2020 15:00:19 +0200 Subject: Management of string result inside string result. --- include/parsingtoolbox.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h index f3031f2..521c9cf 100644 --- a/include/parsingtoolbox.h +++ b/include/parsingtoolbox.h @@ -59,11 +59,15 @@ public: int digitNumber() const; void setDigitNumber(int digitNumber); + int subIndex() const; + void setSubIndex(int subindex); + private: int m_length= 2; int m_digitNumber= 0; int m_resultIndex= -1; int m_position= -1; + int m_subIndex= -1; }; /** @@ -277,7 +281,8 @@ public: bool readOperand(QString& str, ExecutionNode*& node); static int findClosingCharacterIndexOf(QChar open, QChar closing, const QString& str, int offset); - static QString replaceVariableToValue(const QString& source, QStringList values); + static QString replaceVariableToValue(const QString& source, QStringList values, + QMap& errorMap); static QString replacePlaceHolderToValue(const QString& source, const QList& list); static SubtituteInfo readVariableFromString(const QString& source, int& start); -- cgit v1.2.3-70-g09d2