From ad38ca5a030e17e48495e52457192914a749912b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 13 Dec 2017 14:42:16 +0000 Subject: 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 Reviewed-by: dsinclair --- core/fxcrt/xml/cxml_parser.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'core/fxcrt/xml/cxml_parser.cpp') 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), -- cgit v1.2.3