aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/parsingtoolbox.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2020-01-29 01:40:46 +0100
committerRenaud G <renaud@rolisteam.org>2020-01-29 01:40:46 +0100
commitec4e06259947921b6958e3cdf27786904a79af2f (patch)
treeea3fd9964199a43217419e1317ebb4519264d8d1 /include/parsingtoolbox.h
parent825bcda767d2bab9f470d81cd76b9e5985fbea9c (diff)
downloadOneRoll-ec4e06259947921b6958e3cdf27786904a79af2f.tar.gz
OneRoll-ec4e06259947921b6958e3cdf27786904a79af2f.zip
Output tags for dice list.
Diffstat (limited to 'include/parsingtoolbox.h')
-rw-r--r--include/parsingtoolbox.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/parsingtoolbox.h b/include/parsingtoolbox.h
index 8d5f62b..038427f 100644
--- a/include/parsingtoolbox.h
+++ b/include/parsingtoolbox.h
@@ -26,6 +26,7 @@
#include "booleancondition.h"
#include "compositevalidator.h"
+#include "highlightdice.h"
#include "node/dicerollernode.h"
#include "node/executionnode.h"
#include "node/ifnode.h"
@@ -111,7 +112,7 @@ public:
* @param str
* @return
*/
- Validator* readValidator(QString& str, bool hasSquare=false);
+ Validator* readValidator(QString& str, bool hasSquare= false);
/**
* @brief readCompositeValidator
* @param str
@@ -227,8 +228,10 @@ public:
static int findClosingCharacterIndexOf(QChar open, QChar closing, const QString& str, int offset);
static QString replaceVariableToValue(const QString& source, QStringList values);
+ static QString replacePlaceHolderToValue(const QString& source, const QList<ExportedDiceResult>& list);
static SubtituteInfo readVariableFromString(const QString& source, int& start);
+ static SubtituteInfo readPlaceHolderFromString(const QString& source, int& start);
static void readSubtitutionParameters(SubtituteInfo& info, QString& rest);