| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 struct CMap_CodeRange { | 82 struct CMap_CodeRange { |
| 83 int m_CharSize; | 83 int m_CharSize; |
| 84 uint8_t m_Lower[4]; | 84 uint8_t m_Lower[4]; |
| 85 uint8_t m_Upper[4]; | 85 uint8_t m_Upper[4]; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 class CPDF_CMapParser { | 88 class CPDF_CMapParser { |
| 89 public: | 89 public: |
| 90 CPDF_CMapParser(); | 90 CPDF_CMapParser(); |
| 91 ~CPDF_CMapParser() {} | 91 ~CPDF_CMapParser() {} |
| 92 FX_BOOL Initialize(CPDF_CMap*); | 92 FX_BOOL Initialize(CPDF_CMap* pMap); |
| 93 void ParseWord(const CFX_ByteStringC& str); | 93 void ParseWord(const CFX_ByteStringC& str); |
| 94 CFX_BinaryBuf m_AddMaps; | 94 CFX_BinaryBuf m_AddMaps; |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 friend class fpdf_font_cid_CMap_GetCode_Test; | 97 friend class fpdf_font_cid_CMap_GetCode_Test; |
| 98 friend class fpdf_font_cid_CMap_GetCodeRange_Test; | 98 friend class fpdf_font_cid_CMap_GetCodeRange_Test; |
| 99 | 99 |
| 100 static FX_DWORD CMap_GetCode(const CFX_ByteStringC& word); | 100 static FX_DWORD CMap_GetCode(const CFX_ByteStringC& word); |
| 101 static bool CMap_GetCodeRange(CMap_CodeRange& range, | 101 static bool CMap_GetCodeRange(CMap_CodeRange& range, |
| 102 const CFX_ByteStringC& first, | 102 const CFX_ByteStringC& first, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 194 |
| 195 static FX_DWORD StringToCode(const CFX_ByteStringC& str); | 195 static FX_DWORD StringToCode(const CFX_ByteStringC& str); |
| 196 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 196 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, | 199 void FPDFAPI_LoadCID2UnicodeMap(CIDSet charset, |
| 200 const FX_WORD*& pMap, | 200 const FX_WORD*& pMap, |
| 201 FX_DWORD& count); | 201 FX_DWORD& count); |
| 202 | 202 |
| 203 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 203 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
| OLD | NEW |