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

Side by Side Diff: core/fpdfapi/font/fpdf_font_cid.cpp

Issue 2640143003: Update safe numerics package to get bitwise ops (Closed)
Patch Set: Address reviewer comments Created 3 years, 11 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 | « no previous file | core/fpdfapi/page/cpdf_psengine.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/font/font_int.h" 7 #include "core/fpdfapi/font/font_int.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "core/fpdfapi/cmaps/cmap_int.h" 12 #include "core/fpdfapi/cmaps/cmap_int.h"
13 #include "core/fpdfapi/cpdf_modulemgr.h" 13 #include "core/fpdfapi/cpdf_modulemgr.h"
14 #include "core/fpdfapi/font/ttgsubtable.h" 14 #include "core/fpdfapi/font/ttgsubtable.h"
15 #include "core/fpdfapi/page/cpdf_pagemodule.h" 15 #include "core/fpdfapi/page/cpdf_pagemodule.h"
16 #include "core/fpdfapi/parser/cpdf_array.h" 16 #include "core/fpdfapi/parser/cpdf_array.h"
17 #include "core/fpdfapi/parser/cpdf_dictionary.h" 17 #include "core/fpdfapi/parser/cpdf_dictionary.h"
18 #include "core/fpdfapi/parser/cpdf_simple_parser.h" 18 #include "core/fpdfapi/parser/cpdf_simple_parser.h"
19 #include "core/fxcrt/fx_ext.h" 19 #include "core/fxcrt/fx_ext.h"
20 #include "core/fxge/fx_freetype.h" 20 #include "core/fxge/fx_freetype.h"
21 #include "third_party/base/logging.h"
21 #include "third_party/base/stl_util.h" 22 #include "third_party/base/stl_util.h"
22 23
23 namespace { 24 namespace {
24 25
25 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = { 26 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = {
26 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; 27 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"};
27 28
28 class CPDF_PredefinedCMap { 29 class CPDF_PredefinedCMap {
29 public: 30 public:
30 const FX_CHAR* m_pName; 31 const FX_CHAR* m_pName;
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count; 778 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count;
778 } 779 }
779 780
780 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) { 781 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) {
781 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) { 782 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) {
782 if (ordering == g_CharsetNames[charset]) 783 if (ordering == g_CharsetNames[charset])
783 return CIDSetFromSizeT(charset); 784 return CIDSetFromSizeT(charset);
784 } 785 }
785 return CIDSET_UNKNOWN; 786 return CIDSET_UNKNOWN;
786 } 787 }
OLDNEW
« no previous file with comments | « no previous file | core/fpdfapi/page/cpdf_psengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698