diff options
| author | 2019-02-14 23:45:18 +0100 | |
|---|---|---|
| committer | 2019-03-23 17:58:32 +0100 | |
| commit | 1d962712fdba24078b6ce35a2d616cd3155cfc31 (patch) | |
| tree | 13d888e3734d44d44b83732bfe35d20bb23a7584 /parsingtoolbox.cpp | |
| parent | c46ad9d1ceb345f09590ad8ea9a98b33a2a0c31b (diff) | |
| download | OneRoll-1d962712fdba24078b6ce35a2d616cd3155cfc31.tar.gz OneRoll-1d962712fdba24078b6ce35a2d616cd3155cfc31.zip | |
add occurencecountnode
Diffstat (limited to 'parsingtoolbox.cpp')
| -rw-r--r-- | parsingtoolbox.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 2b77fe2..ffc4a60 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -517,6 +517,16 @@ bool ParsingToolBox::readVariable(QString& str, qint64& myNumber, QString& reaso return false; } +bool ParsingToolBox::readComma(QString& str) +{ + if(str.startsWith(",")) + { + str= str.remove(0, 1); + return true; + } + else + return false; +} bool ParsingToolBox::readOpenParentheses(QString& str) { if(str.startsWith("(")) @@ -527,6 +537,7 @@ bool ParsingToolBox::readOpenParentheses(QString& str) else return false; } + bool ParsingToolBox::readCloseParentheses(QString& str) { if(str.startsWith(")")) |