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

Method skipToNextTag

src/backend/lib/XmlStreamReader.cpp:117–133  ·  view source on GitHub ↗

! * Go to the next start or end element tag * If the end of the document is reached, an error is raised. * \return false if end of document reached, otherwise true */

Source from the content-addressed store, hash-verified

115 * \return false if end of document reached, otherwise true
116 */
117bool XmlStreamReader::skipToNextTag() {
118 if (atEnd()) {
119 raiseError(i18n("unexpected end of document"));
120 return false;
121 }
122
123 do {
124 readNext();
125 } while (!(isStartElement() || isEndElement() || atEnd()));
126
127 if (atEnd()) {
128 raiseError(i18n("unexpected end of document"));
129 return false;
130 }
131
132 return true;
133}
134
135/*!
136 * Go to the end element tag of the current element

Callers 5

getProjectThumbnailMethod · 0.80
Folder.cppFile · 0.80
loadMethod · 0.80
XmlReadInputFilterMethod · 0.80
XmlReadOutputFilterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected