diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2017-07-27 11:30:33 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-27 19:40:12 +0000 |
commit | 5b45c540a2bdfedd0711139e0f1256faaee2ef83 (patch) | |
tree | 42bc13c0f4e0e765799b5f8e16ee0b7bd43fd499 /xfa/fxfa/fm2js/cxfa_fm2jscontext.h | |
parent | 5facffcab55afe2448a6b78fd46d113da59db1d8 (diff) | |
download | pdfium-5b45c540a2bdfedd0711139e0f1256faaee2ef83.tar.xz |
Remove CFX_ByteTextBuf from cxfa_fm2jscontext.cpp
Bug: pdfium:731
Change-Id: I3b7e4e88d44afcb8590ce4b7e7de7c0eccdc623a
Reviewed-on: https://pdfium-review.googlesource.com/7350
Reviewed-by: (OOO Jul 28 - Aug 8) dsinclair <dsinclair@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fm2jscontext.h')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fm2jscontext.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext.h b/xfa/fxfa/fm2js/cxfa_fm2jscontext.h index 7946c02993..abc9548429 100644 --- a/xfa/fxfa/fm2js/cxfa_fm2jscontext.h +++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext.h @@ -224,21 +224,15 @@ class CXFA_FM2JSContext : public CFXJSE_HostObject { static void Decode(CFXJSE_Value* pThis, const CFX_ByteStringC& szFuncName, CFXJSE_Arguments& args); - static void DecodeURL(const CFX_ByteStringC& szURLString, - CFX_ByteTextBuf& szResultBuf); - static void DecodeHTML(const CFX_ByteStringC& szHTMLString, - CFX_ByteTextBuf& szResultBuf); - static void DecodeXML(const CFX_ByteStringC& szXMLString, - CFX_ByteTextBuf& szResultBuf); + static CFX_WideString DecodeURL(const CFX_WideString& wsURLString); + static CFX_WideString DecodeHTML(const CFX_WideString& wsHTMLString); + static CFX_WideString DecodeXML(const CFX_WideString& wsXMLString); static void Encode(CFXJSE_Value* pThis, const CFX_ByteStringC& szFuncName, CFXJSE_Arguments& args); - static void EncodeURL(const CFX_ByteStringC& szURLString, - CFX_ByteTextBuf& szResultBuf); - static void EncodeHTML(const CFX_ByteStringC& szHTMLString, - CFX_ByteTextBuf& szResultBuf); - static void EncodeXML(const CFX_ByteStringC& szXMLString, - CFX_ByteTextBuf& szResultBuf); + static CFX_WideString EncodeURL(const CFX_ByteString& szURLString); + static CFX_WideString EncodeHTML(const CFX_ByteString& szHTMLString); + static CFX_WideString EncodeXML(const CFX_ByteString& szXMLString); static bool HTMLSTR2Code(const CFX_WideStringC& pData, uint32_t* iCode); static bool HTMLCode2STR(uint32_t iCode, CFX_WideString* wsHTMLReserve); static void Format(CFXJSE_Value* pThis, @@ -289,11 +283,8 @@ class CXFA_FM2JSContext : public CFXJSE_HostObject { static void WordNum(CFXJSE_Value* pThis, const CFX_ByteStringC& szFuncName, CFXJSE_Arguments& args); - static void TrillionUS(const CFX_ByteStringC& szData, - CFX_ByteTextBuf& strBuf); - static void WordUS(const CFX_ByteStringC& szData, - int32_t iStyle, - CFX_ByteTextBuf& strBuf); + static CFX_ByteString TrillionUS(const CFX_ByteStringC& szData); + static CFX_ByteString WordUS(const CFX_ByteString& szData, int32_t iStyle); static void Get(CFXJSE_Value* pThis, const CFX_ByteStringC& szFuncName, |