aboutsummaryrefslogtreecommitdiffstats
path: root/src/Expat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Expat.cxx')
-rw-r--r--src/Expat.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Expat.cxx b/src/Expat.cxx
index 82dce7682..5cee45912 100644
--- a/src/Expat.cxx
+++ b/src/Expat.cxx
@@ -70,6 +70,17 @@ ExpatParser::Parse(InputStream &is, Error &error)
}
const char *
+ExpatParser::GetAttribute(const XML_Char **atts,
+ const char *name)
+{
+ for (unsigned i = 0; atts[i] != nullptr; i += 2)
+ if (strcmp(atts[i], name) == 0)
+ return atts[i + 1];
+
+ return nullptr;
+}
+
+const char *
ExpatParser::GetAttributeCase(const XML_Char **atts,
const char *name)
{