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

Side by Side Diff: core/fpdfapi/cmaps/fpdf_cmaps.cpp

Issue 2392773003: Move core/fpdfapi/fpdf_font to core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 months 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/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp ('k') | core/fpdfapi/font/cpdf_cidfont.h » ('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 #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
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 }
OLDNEW
« no previous file with comments | « core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp ('k') | core/fpdfapi/font/cpdf_cidfont.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698