check for operator-> but don't get confused by operator-->
| 102 | |
| 103 | // check for operator-> but don't get confused by operator--> |
| 104 | bool isArrowOperator(QStringView str, int pos) |
| 105 | { |
| 106 | Q_ASSERT(pos >= 0 && pos < str.size()); |
| 107 | |
| 108 | Q_ASSERT(str[pos] == QLatin1Char('>')); |
| 109 | return pos > 0 && str[pos - 1] == QLatin1Char('-') && (pos == 1 || str[pos - 2] != QLatin1Char('-')); |
| 110 | } |
| 111 | |
| 112 | bool isOperatorOrArrowOperator(QStringView str, int pos) |
| 113 | { |
no test coverage detected