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

Method readString

src/3rdparty/QXlsx/source/xlsxsharedstrings.cpp:242–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void SharedStrings::readString(QXmlStreamReader &reader)
243{
244 Q_ASSERT(reader.name() == QLatin1String("si"));
245
246 RichString richString;
247
248 while (!reader.atEnd() && !(reader.name() == QLatin1String("si") && reader.tokenType() == QXmlStreamReader::EndElement)) {
249 reader.readNextStartElement();
250 if (reader.tokenType() == QXmlStreamReader::StartElement) {
251 if (reader.name() == QLatin1String("r"))
252 readRichStringPart(reader, richString);
253 else if (reader.name() == QLatin1String("t"))
254 readPlainStringPart(reader, richString);
255 }
256 }
257
258 int idx = m_stringList.size();
259 m_stringTable[richString] = XlsxSharedStringInfo(idx, 0);
260 m_stringList.append(richString);
261}
262
263void SharedStrings::readRichStringPart(QXmlStreamReader &reader, RichString &richString)
264{

Callers

nothing calls this directly

Calls 4

atEndMethod · 0.80
appendMethod · 0.80
nameMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected