| 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 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 7 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 
| 8 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 8 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 
| 9 | 9 | 
| 10 #include <map> | 10 #include <map> | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 70 | 70 | 
| 71 class CPDF_CMapParser { | 71 class CPDF_CMapParser { | 
| 72  public: | 72  public: | 
| 73   CPDF_CMapParser(); | 73   CPDF_CMapParser(); | 
| 74   ~CPDF_CMapParser() {} | 74   ~CPDF_CMapParser() {} | 
| 75   FX_BOOL Initialize(CPDF_CMap*); | 75   FX_BOOL Initialize(CPDF_CMap*); | 
| 76   void ParseWord(const CFX_ByteStringC& str); | 76   void ParseWord(const CFX_ByteStringC& str); | 
| 77   CFX_BinaryBuf m_AddMaps; | 77   CFX_BinaryBuf m_AddMaps; | 
| 78 | 78 | 
| 79  private: | 79  private: | 
|  | 80   friend class fpdf_font_cid_CMap_GetCode_Test; | 
|  | 81   friend class fpdf_font_cid_CMap_GetCodeRange_Test; | 
|  | 82 | 
|  | 83   static FX_DWORD CMap_GetCode(const CFX_ByteStringC& word); | 
|  | 84   static bool CMap_GetCodeRange(CMap_CodeRange& range, | 
|  | 85                                 const CFX_ByteStringC& first, | 
|  | 86                                 const CFX_ByteStringC& second); | 
|  | 87 | 
| 80   CPDF_CMap* m_pCMap; | 88   CPDF_CMap* m_pCMap; | 
| 81   int m_Status; | 89   int m_Status; | 
| 82   int m_CodeSeq; | 90   int m_CodeSeq; | 
| 83   FX_DWORD m_CodePoints[4]; | 91   FX_DWORD m_CodePoints[4]; | 
| 84   CFX_ArrayTemplate<CMap_CodeRange> m_CodeRanges; | 92   CFX_ArrayTemplate<CMap_CodeRange> m_CodeRanges; | 
| 85   CFX_ByteString m_Registry, m_Ordering, m_Supplement; | 93   CFX_ByteString m_Registry, m_Ordering, m_Supplement; | 
| 86   CFX_ByteString m_LastWord; | 94   CFX_ByteString m_LastWord; | 
| 87 }; | 95 }; | 
| 88 #define CIDCODING_UNKNOWN 0 | 96 #define CIDCODING_UNKNOWN 0 | 
| 89 #define CIDCODING_GB 1 | 97 #define CIDCODING_GB 1 | 
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 186  public: | 194  public: | 
| 187   CPDF_FontCharMap(CPDF_Font* pFont); | 195   CPDF_FontCharMap(CPDF_Font* pFont); | 
| 188   CPDF_Font* m_pFont; | 196   CPDF_Font* m_pFont; | 
| 189 }; | 197 }; | 
| 190 | 198 | 
| 191 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, | 199 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, | 
| 192                                 const FX_WORD*& pMap, | 200                                 const FX_WORD*& pMap, | 
| 193                                 FX_DWORD& count); | 201                                 FX_DWORD& count); | 
| 194 | 202 | 
| 195 #endif  // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 203 #endif  // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 
| OLD | NEW | 
|---|