diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-20 14:31:18 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-20 22:44:39 +0000 |
commit | aeee187c927c07f47a9e5886a417dcc58badefb6 (patch) | |
tree | 270351e970de6ac9f6530ca9c7448dc7b8c499e2 /core/fxcrt/xml/cfx_xmlsyntaxparser.h | |
parent | c16ab75eb98733c857723f9c2947c77a56b2bb02 (diff) | |
download | pdfium-aeee187c927c07f47a9e5886a417dcc58badefb6.tar.xz |
Remove hand-written bsearch from cfx_xmlsyntaxparser.cppchromium/3077
Convert IsXMLNameChar() to static method for easier testing
without namespace pollution.
Change-Id: I004557e74fde94d3582b0a2326e5e68b907b9690
Reviewed-on: https://pdfium-review.googlesource.com/4397
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlsyntaxparser.h')
-rw-r--r-- | core/fxcrt/xml/cfx_xmlsyntaxparser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/xml/cfx_xmlsyntaxparser.h b/core/fxcrt/xml/cfx_xmlsyntaxparser.h index 519f2833d6..32e55f1ff0 100644 --- a/core/fxcrt/xml/cfx_xmlsyntaxparser.h +++ b/core/fxcrt/xml/cfx_xmlsyntaxparser.h @@ -36,6 +36,8 @@ enum class FX_XmlSyntaxResult { class CFX_XMLSyntaxParser { public: + static bool IsXMLNameChar(wchar_t ch, bool bFirstChar); + explicit CFX_XMLSyntaxParser( const CFX_RetainPtr<CFX_SeekableStreamProxy>& pStream); ~CFX_XMLSyntaxParser(); |