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

Side by Side Diff: core/fpdfapi/font/font_int.h

Issue 2611413002: Remove CFX_ArrayTemplate from fpdfapi (Closed)
Patch Set: comment 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 | « core/fpdfapi/font/cpdf_cidfont.cpp ('k') | core/fpdfapi/font/fpdf_font_cid.cpp » ('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 #ifndef CORE_FPDFAPI_FONT_FONT_INT_H_ 7 #ifndef CORE_FPDFAPI_FONT_FONT_INT_H_
8 #define CORE_FPDFAPI_FONT_FONT_INT_H_ 8 #define CORE_FPDFAPI_FONT_FONT_INT_H_
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <vector>
12 13
13 #include "core/fpdfapi/font/cpdf_cidfont.h" 14 #include "core/fpdfapi/font/cpdf_cidfont.h"
14 #include "core/fxcrt/fx_basic.h" 15 #include "core/fxcrt/fx_basic.h"
15 16
16 class CPDF_CID2UnicodeMap; 17 class CPDF_CID2UnicodeMap;
17 class CPDF_CMap; 18 class CPDF_CMap;
18 class CPDF_Font; 19 class CPDF_Font;
19 class CPDF_Stream; 20 class CPDF_Stream;
20 21
21 using FXFT_Library = void*; 22 using FXFT_Library = void*;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 static uint32_t CMap_GetCode(const CFX_ByteStringC& word); 102 static uint32_t CMap_GetCode(const CFX_ByteStringC& word);
102 static bool CMap_GetCodeRange(CMap_CodeRange& range, 103 static bool CMap_GetCodeRange(CMap_CodeRange& range,
103 const CFX_ByteStringC& first, 104 const CFX_ByteStringC& first,
104 const CFX_ByteStringC& second); 105 const CFX_ByteStringC& second);
105 106
106 CPDF_CMap* m_pCMap; 107 CPDF_CMap* m_pCMap;
107 int m_Status; 108 int m_Status;
108 int m_CodeSeq; 109 int m_CodeSeq;
109 uint32_t m_CodePoints[4]; 110 uint32_t m_CodePoints[4];
110 CFX_ArrayTemplate<CMap_CodeRange> m_CodeRanges; 111 std::vector<CMap_CodeRange> m_CodeRanges;
111 CFX_ByteString m_LastWord; 112 CFX_ByteString m_LastWord;
112 }; 113 };
113 114
114 enum CIDCoding : uint8_t { 115 enum CIDCoding : uint8_t {
115 CIDCODING_UNKNOWN = 0, 116 CIDCODING_UNKNOWN = 0,
116 CIDCODING_GB, 117 CIDCODING_GB,
117 CIDCODING_BIG5, 118 CIDCODING_BIG5,
118 CIDCODING_JIS, 119 CIDCODING_JIS,
119 CIDCODING_KOREA, 120 CIDCODING_KOREA,
120 CIDCODING_UCS2, 121 CIDCODING_UCS2,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); 198 static CFX_WideString StringToWideString(const CFX_ByteStringC& str);
198 199
199 uint32_t GetUnicode(); 200 uint32_t GetUnicode();
200 201
201 std::map<uint32_t, uint32_t> m_Map; 202 std::map<uint32_t, uint32_t> m_Map;
202 CPDF_CID2UnicodeMap* m_pBaseMap; 203 CPDF_CID2UnicodeMap* m_pBaseMap;
203 CFX_WideTextBuf m_MultiCharBuf; 204 CFX_WideTextBuf m_MultiCharBuf;
204 }; 205 };
205 206
206 #endif // CORE_FPDFAPI_FONT_FONT_INT_H_ 207 #endif // CORE_FPDFAPI_FONT_FONT_INT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/font/cpdf_cidfont.cpp ('k') | core/fpdfapi/font/fpdf_font_cid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698