summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cxml_parser.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-13 14:42:16 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-13 14:42:16 +0000
commitad38ca5a030e17e48495e52457192914a749912b (patch)
tree9bf4c4d59b893bd15aaee1d603b2ff73118a6cf5 /core/fxcrt/xml/cxml_parser.cpp
parent9a3a077e4820efa035eca4aec7e93fbd1298d6cb (diff)
downloadpdfium-ad38ca5a030e17e48495e52457192914a749912b.tar.xz
Fix some nits in CXML_Element.
Move FX_XML_SplitQualifiedName() out of CXML_Parser, and add CXML_Element::MatchesElement(). Change-Id: I34adc6f3b19e745ae33db0edf65184346cc1c13f Reviewed-on: https://pdfium-review.googlesource.com/21073 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cxml_parser.cpp')
-rw-r--r--core/fxcrt/xml/cxml_parser.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/fxcrt/xml/cxml_parser.cpp b/core/fxcrt/xml/cxml_parser.cpp
index 062b5bec07..76463bba23 100644
--- a/core/fxcrt/xml/cxml_parser.cpp
+++ b/core/fxcrt/xml/cxml_parser.cpp
@@ -78,21 +78,6 @@ bool g_FXCRT_XML_IsNameChar(uint8_t ch) {
} // namespace
-void FX_XML_SplitQualifiedName(const ByteStringView& bsFullName,
- ByteStringView& bsSpace,
- ByteStringView& bsName) {
- if (bsFullName.IsEmpty())
- return;
-
- auto iStart = bsFullName.Find(':');
- if (!iStart.has_value()) {
- bsName = bsFullName;
- } else {
- bsSpace = bsFullName.Left(iStart.value());
- bsName = bsFullName.Right(bsFullName.GetLength() - (iStart.value() + 1));
- }
-}
-
CXML_Parser::CXML_Parser()
: m_nOffset(0),
m_pBuffer(nullptr),