diff options
| author | 2020-06-28 15:00:19 +0200 | |
|---|---|---|
| committer | 2020-06-28 15:00:19 +0200 | |
| commit | c5ea6210eedf433ec247e0f6b439a58316f1d11a (patch) | |
| tree | c54d47a58a5aa428e64283f65ad13fcee3554e35 /include/parsingtoolbox.h | |
| parent | 6ca0d07b82c79eeb6b48463e1576ec4aec41ac31 (diff) | |
| download | OneRoll-c5ea6210eedf433ec247e0f6b439a58316f1d11a.tar.gz OneRoll-c5ea6210eedf433ec247e0f6b439a58316f1d11a.zip | |
Management of string result inside string result.
Diffstat (limited to 'include/parsingtoolbox.h')
| -rw-r--r-- | include/parsingtoolbox.h | 7 |
1 files changed, 6 insertions, 1 deletions
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<Dice::ERROR_CODE, QString>& errorMap); static QString replacePlaceHolderToValue(const QString& source, const QList<ExportedDiceResult>& list); static SubtituteInfo readVariableFromString(const QString& source, int& start); |