Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Side by Side Diff: core/src/fpdftext/text_int.h

Issue 1532303002: Merge to XFA: Correctly extracting email addresses (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fpdftext/fpdf_text_int_unittest.cpp ('k') | pdfium.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_ 7 #ifndef CORE_SRC_FPDFTEXT_TEXT_INT_H_
8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_ 8 #define CORE_SRC_FPDFTEXT_TEXT_INT_H_
9 9
10 #include "core/include/fpdftext/fpdf_text.h" 10 #include "core/include/fpdftext/fpdf_text.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 CFX_WideString GetURL(int index) const override; 220 CFX_WideString GetURL(int index) const override;
221 void GetBoundedSegment(int index, int& start, int& count) const override; 221 void GetBoundedSegment(int index, int& start, int& count) const override;
222 void GetRects(int index, CFX_RectArray& rects) const override; 222 void GetRects(int index, CFX_RectArray& rects) const override;
223 223
224 FX_BOOL IsExtract() const { return m_bIsParsed; } 224 FX_BOOL IsExtract() const { return m_bIsParsed; }
225 225
226 protected: 226 protected:
227 void ParseLink(); 227 void ParseLink();
228 void DeleteLinkList(); 228 void DeleteLinkList();
229 FX_BOOL CheckWebLink(CFX_WideString& strBeCheck); 229 FX_BOOL CheckWebLink(CFX_WideString& strBeCheck);
230 FX_BOOL CheckMailLink(CFX_WideString& str); 230 bool CheckMailLink(CFX_WideString& str);
231 void AppendToLinkList(int start, int count, const CFX_WideString& strUrl); 231 void AppendToLinkList(int start, int count, const CFX_WideString& strUrl);
232 232
233 private: 233 private:
234 LINK_InfoArray m_LinkList; 234 LINK_InfoArray m_LinkList;
235 const CPDF_TextPage* m_pTextPage; 235 const CPDF_TextPage* m_pTextPage;
236 CFX_WideString m_strPageText; 236 CFX_WideString m_strPageText;
237 bool m_bIsParsed; 237 bool m_bIsParsed;
238 }; 238 };
239 239
240 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst); 240 FX_STRSIZE FX_Unicode_GetNormalization(FX_WCHAR wch, FX_WCHAR* pDst);
241 void NormalizeString(CFX_WideString& str); 241 void NormalizeString(CFX_WideString& str);
242 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest); 242 void NormalizeCompositeChar(FX_WCHAR wChar, CFX_WideString& sDest);
243 void GetTextStream_Unicode(CFX_WideTextBuf& buffer, 243 void GetTextStream_Unicode(CFX_WideTextBuf& buffer,
244 CPDF_PageObjects* pPage, 244 CPDF_PageObjects* pPage,
245 FX_BOOL bUseLF, 245 FX_BOOL bUseLF,
246 CFX_PtrArray* pObjArray); 246 CFX_PtrArray* pObjArray);
247 247
248 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_ 248 #endif // CORE_SRC_FPDFTEXT_TEXT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdftext/fpdf_text_int_unittest.cpp ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698