summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_xmllocale.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-16 17:59:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-16 17:59:07 +0000
commitbdbfc08f96f89581bea277d5ddd9755e893067d7 (patch)
tree3639bd042f64e5a93480a87e5a1d374ffe56a3e6 /xfa/fxfa/parser/cxfa_xmllocale.h
parentcce4d31e6e746bae72f2f31676c12f1d2851ade3 (diff)
downloadpdfium-bdbfc08f96f89581bea277d5ddd9755e893067d7.tar.xz
Convert CXFA_XMLLocale to CFX_XML
This CL converts CXFA_XMLLocale to use CFX_XML instead of CXML. Change-Id: I1db617a658548ae5979f2f38d72c5b3000998663 Reviewed-on: https://pdfium-review.googlesource.com/30693 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_xmllocale.h')
-rw-r--r--xfa/fxfa/parser/cxfa_xmllocale.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/xfa/fxfa/parser/cxfa_xmllocale.h b/xfa/fxfa/parser/cxfa_xmllocale.h
index d1d21e83f1..92bd3607ec 100644
--- a/xfa/fxfa/parser/cxfa_xmllocale.h
+++ b/xfa/fxfa/parser/cxfa_xmllocale.h
@@ -13,13 +13,14 @@
#include "third_party/base/ptr_util.h"
#include "third_party/base/span.h"
-class CXML_Element;
+class CFX_XMLElement;
class CXFA_XMLLocale : public LocaleIface {
public:
static std::unique_ptr<CXFA_XMLLocale> Create(pdfium::span<uint8_t> data);
- explicit CXFA_XMLLocale(std::unique_ptr<CXML_Element> pLocaleData);
+ explicit CXFA_XMLLocale(std::unique_ptr<CFX_XMLElement> root,
+ CFX_XMLElement* locale);
~CXFA_XMLLocale() override;
// LocaleIface
@@ -38,14 +39,15 @@ class CXFA_XMLLocale : public LocaleIface {
WideString GetNumPattern(FX_LOCALENUMSUBCATEGORY eType) const override;
private:
- WideString GetPattern(CXML_Element* pElement,
- const ByteStringView& bsTag,
+ WideString GetPattern(CFX_XMLElement* pElement,
+ const WideStringView& bsTag,
const WideStringView& wsName) const;
- WideString GetCalendarSymbol(const ByteStringView& symbol,
- int index,
+ WideString GetCalendarSymbol(const WideStringView& symbol,
+ size_t index,
bool bAbbr) const;
- std::unique_ptr<CXML_Element> m_pLocaleData;
+ std::unique_ptr<CFX_XMLElement> xml_root_;
+ UnownedPtr<CFX_XMLElement> locale_;
};
#endif // XFA_FXFA_PARSER_CXFA_XMLLOCALE_H_