summaryrefslogtreecommitdiff
path: root/core/src/fpdftext/text_int.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2014-12-19 21:54:15 -0800
committerLei Zhang <thestig@google.com>2014-12-19 21:54:15 -0800
commit6c06469226a127bbbca103c08d282fe2e711c89d (patch)
treeb8c690683b23b367f09924d8d95f85f3d0894557 /core/src/fpdftext/text_int.h
parent59dffb68f07c7ce583285a23ad580b768ce3cd3e (diff)
downloadpdfium-6c06469226a127bbbca103c08d282fe2e711c89d.tar.xz
Refactor some code in CPDF_TextPage::ProcessTextObject().
Fix a memory leak while we are at it. R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/813153002
Diffstat (limited to 'core/src/fpdftext/text_int.h')
-rw-r--r--core/src/fpdftext/text_int.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/fpdftext/text_int.h b/core/src/fpdftext/text_int.h
index 65ffddea0a..c3f3b7108e 100644
--- a/core/src/fpdftext/text_int.h
+++ b/core/src/fpdftext/text_int.h
@@ -115,6 +115,11 @@ private:
void AddCharInfoByRLDirection(CFX_WideString& str, int i);
FX_INT32 GetTextObjectWritingMode(const CPDF_TextObject* pTextObj);
FX_INT32 FindTextlineFlowDirection();
+ void SwapTempTextBuf(FX_INT32 iCharListStartAppend,
+ FX_INT32 iBufStartAppend);
+ FX_BOOL IsRightToLeft(const CPDF_TextObject* pTextObj,
+ const CPDF_Font* pFont,
+ int nItems) const;
protected:
CPDFText_ParseOptions m_ParseOptions;
CFX_WordArray m_CharIndex;