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

Function col_from_name

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

Source from the content-addressed store, hash-verified

42}
43
44int col_from_name(const QString &col_str)
45{
46 int col = 0;
47 int expn = 0;
48 for (int i=col_str.size()-1; i>-1; --i) {
49 col += (col_str[i].unicode() - 'A' + 1) * intPow(26, expn);
50 expn++;
51 }
52
53 return col;
54}
55} //namespace
56
57/*!

Callers 1

initMethod · 0.85

Calls 2

intPowFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected