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

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

Issue 2356603003: Change protected to private in CPDF_CID2UnicodeMap and CPDF_ToUnicodeMap (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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_FPDF_FONT_FONT_INT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ 8 #define CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 class CPDF_CID2UnicodeMap { 171 class CPDF_CID2UnicodeMap {
172 public: 172 public:
173 CPDF_CID2UnicodeMap(); 173 CPDF_CID2UnicodeMap();
174 ~CPDF_CID2UnicodeMap(); 174 ~CPDF_CID2UnicodeMap();
175 175
176 FX_BOOL Initialize(); 176 FX_BOOL Initialize();
177 FX_BOOL IsLoaded(); 177 FX_BOOL IsLoaded();
178 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK); 178 void Load(CPDF_CMapManager* pMgr, CIDSet charset, FX_BOOL bPromptCJK);
179 FX_WCHAR UnicodeFromCID(uint16_t CID); 179 FX_WCHAR UnicodeFromCID(uint16_t CID);
180 180
181 protected: 181 private:
182 CIDSet m_Charset; 182 CIDSet m_Charset;
183 const uint16_t* m_pEmbeddedMap; 183 const uint16_t* m_pEmbeddedMap;
184 uint32_t m_EmbeddedCount; 184 uint32_t m_EmbeddedCount;
185 }; 185 };
186 186
187 class CPDF_ToUnicodeMap { 187 class CPDF_ToUnicodeMap {
188 public: 188 public:
189 CPDF_ToUnicodeMap(); 189 CPDF_ToUnicodeMap();
190 ~CPDF_ToUnicodeMap(); 190 ~CPDF_ToUnicodeMap();
191 191
192 void Load(CPDF_Stream* pStream); 192 void Load(CPDF_Stream* pStream);
193 193
194 CFX_WideString Lookup(uint32_t charcode) const; 194 CFX_WideString Lookup(uint32_t charcode) const;
195 uint32_t ReverseLookup(FX_WCHAR unicode) const; 195 uint32_t ReverseLookup(FX_WCHAR unicode) const;
196 196
197 protected:
198 std::map<uint32_t, uint32_t> m_Map;
199 CPDF_CID2UnicodeMap* m_pBaseMap;
200 CFX_WideTextBuf m_MultiCharBuf;
201
202 private: 197 private:
203 friend class fpdf_font_StringToCode_Test; 198 friend class fpdf_font_StringToCode_Test;
204 friend class fpdf_font_StringToWideString_Test; 199 friend class fpdf_font_StringToWideString_Test;
205 200
206 static uint32_t StringToCode(const CFX_ByteStringC& str); 201 static uint32_t StringToCode(const CFX_ByteStringC& str);
207 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); 202 static CFX_WideString StringToWideString(const CFX_ByteStringC& str);
203
204 std::map<uint32_t, uint32_t> m_Map;
205 CPDF_CID2UnicodeMap* m_pBaseMap;
206 CFX_WideTextBuf m_MultiCharBuf;
208 }; 207 };
209 208
210 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ 209 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698