| 97 | } |
| 98 | |
| 99 | void CellReference::init(const QString &cell_str) |
| 100 | { |
| 101 | static thread_local QRegularExpression re(QStringLiteral("^\\$?([A-Z]{1,3})\\$?(\\d+)$")); |
| 102 | QRegularExpressionMatch match = re.match(cell_str); |
| 103 | if (match.hasMatch()) { |
| 104 | const QString col_str = match.captured(1); |
| 105 | const QString row_str = match.captured(2); |
| 106 | _row = row_str.toInt(); |
| 107 | _column = col_from_name(col_str); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | /*! |
| 112 | Constructs a Reference by copying the given \a |
nothing calls this directly
no test coverage detected