OLD | NEW |
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 2697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) { | 2726 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) { |
2727 return; | 2727 return; |
2728 } | 2728 } |
2729 CPDF_LinkExt* link = NULL; | 2729 CPDF_LinkExt* link = NULL; |
2730 link = m_LinkList.GetAt(index); | 2730 link = m_LinkList.GetAt(index); |
2731 if (!link) { | 2731 if (!link) { |
2732 return; | 2732 return; |
2733 } | 2733 } |
2734 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects); | 2734 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects); |
2735 } | 2735 } |
OLD | NEW |