MCPcopy Create free account
hub / github.com/KDE/labplot / init

Method init

src/3rdparty/QXlsx/source/xlsxcellreference.cpp:99–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void 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

Callers

nothing calls this directly

Calls 1

col_from_nameFunction · 0.85

Tested by

no test coverage detected