| 11 | | * '''getNextQuote('''''string''''', '''''start''''')''': |
| 12 | | * '''isBetweenQuotes('''''string''''', '''''position''''')''': |
| | 17 | * '''getNextQuote('''''string''''', '''''start''''')''': Returns the position of the next quote in the string, starting with start. |
| | 18 | * Examples: |
| | 19 | * getNextQuote("123\"567\"9", 0) = 4 |
| | 20 | * getNextQuote("123\"567\"9", 4) = 4 |
| | 21 | * getNextQuote("123\"567\"9", 6) = 8 |
| | 22 | * getNextQuote("123\"567\"9", 9) = std::npos |
| | 23 | * '''isBetweenQuotes('''''string''''', '''''position''''')''': Returns true if ''position'' is between two quotes. |
| | 24 | * Examples: |
| | 25 | * isBetweenQuotes("123\"567\"9", 1) = false |
| | 26 | * isBetweenQuotes("123\"567\"9", 4) = false |
| | 27 | * isBetweenQuotes("123\"567\"9", 5) = true |
| | 28 | * isBetweenQuotes("123\"567\"9", 8) = false |
| | 29 | * isBetweenQuotes("123\"567\"9", 9) = false |
| 14 | | * '''hasStringBetweenQuotes('''''string''''')''': |
| 15 | | * '''getStringBetweenQuotes('''''string''''')''': |
| | 31 | * '''hasStringBetweenQuotes('''''string''''')''': Returns true if the string contains something like '..."between quotes"...'. |
| | 32 | * Examples: |
| | 33 | * hasStringBetweenQuotes("test") = false |
| | 34 | * hasStringBetweenQuotes("test\"abc") = false |
| | 35 | * hasStringBetweenQuotes("test\"abc\"") = true |
| | 36 | * '''getStringBetweenQuotes('''''string''''')''': If the string contains something like '..."between quotes"...' then 'between quotes' gets returned (without quotes). |
| | 37 | * Examples: |
| | 38 | * hasStringBetweenQuotes("test") = "" |
| | 39 | * hasStringBetweenQuotes("test\"abc") = "" |
| | 40 | * hasStringBetweenQuotes("test\"abc\"") = "abc" |
| 17 | | * '''stripEnclosingQuotes('''''string''''')''': |
| 18 | | * '''stripEnclosingBraces('''''string''''')''': |
| | 42 | * '''stripEnclosingQuotes('''''string''''')''': Removes enclosing quotes if available (including whitespaces at the outside of the quotes). |
| | 43 | * Examples: |
| | 44 | * stripEnclosingQuotes(" \"hello!\" ") = "hello!" |
| | 45 | * stripEnclosingQuotes(" \"hello! ") = " \"hello! " |
| | 46 | * '''stripEnclosingBraces('''''string''''')''': Removes enclosing {braces} (braces must be exactly on the beginning and the end of the string). |
| | 47 | * Examples: |
| | 48 | * stripEnclosingBraces("{test}") = "test" |
| | 49 | * stripEnclosingBraces(" {test}") = " {test}" |
| | 50 | * stripEnclosingBraces("{ test }") = " test " |