diff options
Diffstat (limited to 'parsingtoolbox.cpp')
| -rw-r--r-- | parsingtoolbox.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 46f159d..7b04e83 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -130,3 +130,23 @@ bool ParsingToolBox::readNumber(QString& str, int& myNumber) } return false; } +bool ParsingToolBox::readOpenParentheses(QString& str) +{ + if(str.startsWith("(")) + { + str=str.remove(0,1); + return true; + } + else + return false; +} +bool ParsingToolBox::readCloseParentheses(QString& str) +{ + if(str.startsWith(")")) + { + str=str.remove(0,1); + return true; + } + else + return false; +} |