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 "core/fpdftext/text_int.h" | 7 #include "core/fpdftext/fpdf_text_int.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cctype> | 10 #include <cctype> |
11 #include <cwctype> | 11 #include <cwctype> |
12 #include <memory> | 12 #include <memory> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "core/fpdftext/include/ipdf_linkextract.h" | 16 #include "core/fpdftext/include/ipdf_linkextract.h" |
17 #include "core/fpdftext/include/ipdf_textpage.h" | 17 #include "core/fpdftext/include/ipdf_textpage.h" |
18 #include "core/fpdftext/include/ipdf_textpagefind.h" | 18 #include "core/fpdftext/include/ipdf_textpagefind.h" |
| 19 #include "core/fpdftext/unicodenormalization.h" |
19 #include "core/include/fpdfapi/cpdf_dictionary.h" | 20 #include "core/include/fpdfapi/cpdf_dictionary.h" |
20 #include "core/include/fpdfapi/cpdf_string.h" | 21 #include "core/include/fpdfapi/cpdf_string.h" |
21 #include "core/include/fpdfapi/fpdf_module.h" | 22 #include "core/include/fpdfapi/fpdf_module.h" |
22 #include "core/include/fpdfapi/fpdf_page.h" | 23 #include "core/include/fpdfapi/fpdf_page.h" |
23 #include "core/include/fpdfapi/fpdf_pageobj.h" | 24 #include "core/include/fpdfapi/fpdf_pageobj.h" |
24 #include "core/include/fpdfapi/fpdf_resource.h" | 25 #include "core/include/fpdfapi/fpdf_resource.h" |
25 #include "core/include/fxcrt/fx_bidi.h" | 26 #include "core/include/fxcrt/fx_bidi.h" |
26 #include "core/include/fxcrt/fx_ext.h" | 27 #include "core/include/fxcrt/fx_ext.h" |
27 #include "core/include/fxcrt/fx_ucd.h" | 28 #include "core/include/fxcrt/fx_ucd.h" |
28 #include "third_party/base/stl_util.h" | 29 #include "third_party/base/stl_util.h" |
(...skipping 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2502 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) { | 2503 if (!m_bIsParsed || index < 0 || index >= m_LinkList.GetSize()) { |
2503 return; | 2504 return; |
2504 } | 2505 } |
2505 CPDF_LinkExt* link = NULL; | 2506 CPDF_LinkExt* link = NULL; |
2506 link = m_LinkList.GetAt(index); | 2507 link = m_LinkList.GetAt(index); |
2507 if (!link) { | 2508 if (!link) { |
2508 return; | 2509 return; |
2509 } | 2510 } |
2510 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects); | 2511 m_pTextPage->GetRectArray(link->m_Start, link->m_Count, rects); |
2511 } | 2512 } |
OLD | NEW |