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

Side by Side Diff: core/src/fpdftext/fpdf_text_int.cpp

Issue 1434543003: Merge to XFA: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Fix XFA Created 5 years, 1 month 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
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 #include <ctype.h> 7 #include <ctype.h>
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "../../../third_party/base/nonstd_unique_ptr.h"
11 #include "../../include/fpdfapi/fpdf_module.h" 10 #include "../../include/fpdfapi/fpdf_module.h"
12 #include "../../include/fpdfapi/fpdf_page.h" 11 #include "../../include/fpdfapi/fpdf_page.h"
13 #include "../../include/fpdfapi/fpdf_pageobj.h" 12 #include "../../include/fpdfapi/fpdf_pageobj.h"
14 #include "../../include/fpdfapi/fpdf_resource.h" 13 #include "../../include/fpdfapi/fpdf_resource.h"
15 #include "../../include/fpdftext/fpdf_text.h" 14 #include "../../include/fpdftext/fpdf_text.h"
16 #include "../../include/fxcrt/fx_bidi.h" 15 #include "../../include/fxcrt/fx_bidi.h"
17 #include "../../include/fxcrt/fx_ucd.h" 16 #include "../../include/fxcrt/fx_ucd.h"
18 #include "text_int.h" 17 #include "text_int.h"
18 #include "third_party/base/nonstd_unique_ptr.h"
19 19
20 namespace { 20 namespace {
21 21
22 FX_BOOL _IsIgnoreSpaceCharacter(FX_WCHAR curChar) { 22 FX_BOOL _IsIgnoreSpaceCharacter(FX_WCHAR curChar) {
23 if (curChar < 255) { 23 if (curChar < 255) {
24 return FALSE; 24 return FALSE;
25 } 25 }
26 if ((curChar >= 0x0600 && curChar <= 0x06FF) || 26 if ((curChar >= 0x0600 && curChar <= 0x06FF) ||
27 (curChar >= 0xFE70 && curChar <= 0xFEFF) || 27 (curChar >= 0xFE70 && curChar <= 0xFEFF) ||
28 (curChar >= 0xFB50 && curChar <= 0xFDFF) || 28 (curChar >= 0xFB50 && curChar <= 0xFDFF) ||
(...skipping 2727 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) { 2756 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) {
2757 return; 2757 return;
2758 } 2758 }
2759 CPDF_LinkExt* link = NULL; 2759 CPDF_LinkExt* link = NULL;
2760 link = m_LinkList.GetAt(index); 2760 link = m_LinkList.GetAt(index);
2761 if (!link) { 2761 if (!link) {
2762 return; 2762 return;
2763 } 2763 }
2764 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects); 2764 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects);
2765 } 2765 }
OLDNEW
« no previous file with comments | « core/src/fpdftext/fpdf_text.cpp ('k') | core/src/fxcodec/DEPS » ('j') | xfa.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698