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/fpdfapi/cmaps/cmap_int.h" | 7 #include "core/fpdfapi/cmaps/cmap_int.h" |
8 | 8 |
9 #include "core/fpdfapi/cpdf_modulemgr.h" | 9 #include "core/fpdfapi/cpdf_modulemgr.h" |
10 #include "core/fpdfapi/fpdf_font/font_int.h" | 10 #include "core/fpdfapi/font/font_int.h" |
11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | 11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
12 | 12 |
13 extern "C" { | 13 extern "C" { |
14 | 14 |
15 static int compareWord(const void* p1, const void* p2) { | 15 static int compareWord(const void* p1, const void* p2) { |
16 return (*(uint16_t*)p1) - (*(uint16_t*)p2); | 16 return (*(uint16_t*)p1) - (*(uint16_t*)p2); |
17 } | 17 } |
18 | 18 |
19 static int compareWordRange(const void* key, const void* element) { | 19 static int compareWordRange(const void* key, const void* element) { |
20 if (*(uint16_t*)key < *(uint16_t*)element) | 20 if (*(uint16_t*)key < *(uint16_t*)element) |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 pCur += 3; | 146 pCur += 3; |
147 } | 147 } |
148 } | 148 } |
149 if (pMap->m_UseOffset == 0) | 149 if (pMap->m_UseOffset == 0) |
150 return 0; | 150 return 0; |
151 | 151 |
152 pMap = pMap + pMap->m_UseOffset; | 152 pMap = pMap + pMap->m_UseOffset; |
153 } | 153 } |
154 } | 154 } |
OLD | NEW |