| 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_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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 OneByte, | 132 OneByte, |
| 133 TwoBytes, | 133 TwoBytes, |
| 134 MixedTwoBytes, | 134 MixedTwoBytes, |
| 135 MixedFourBytes | 135 MixedFourBytes |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 CPDF_CMap(); | 138 CPDF_CMap(); |
| 139 ~CPDF_CMap(); | 139 ~CPDF_CMap(); |
| 140 | 140 |
| 141 FX_BOOL LoadPredefined(CPDF_CMapManager* pMgr, | 141 FX_BOOL LoadPredefined(CPDF_CMapManager* pMgr, |
| 142 const FX_CHAR* name, | 142 const CFX_ByteString& name, |
| 143 FX_BOOL bPromptCJK); | 143 FX_BOOL bPromptCJK); |
| 144 FX_BOOL LoadEmbedded(const uint8_t* pData, uint32_t dwSize); | 144 FX_BOOL LoadEmbedded(const uint8_t* pData, uint32_t dwSize); |
| 145 | 145 |
| 146 FX_BOOL IsLoaded() const; | 146 FX_BOOL IsLoaded() const; |
| 147 FX_BOOL IsVertWriting() const; | 147 FX_BOOL IsVertWriting() const; |
| 148 uint16_t CIDFromCharCode(uint32_t charcode) const; | 148 uint16_t CIDFromCharCode(uint32_t charcode) const; |
| 149 int GetCharSize(uint32_t charcode) const; | 149 int GetCharSize(uint32_t charcode) const; |
| 150 uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; | 150 uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; |
| 151 int CountChar(const FX_CHAR* pString, int size) const; | 151 int CountChar(const FX_CHAR* pString, int size) const; |
| 152 int AppendChar(FX_CHAR* str, uint32_t charcode) const; | 152 int AppendChar(FX_CHAR* str, uint32_t charcode) const; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 private: | 202 private: |
| 203 friend class fpdf_font_StringToCode_Test; | 203 friend class fpdf_font_StringToCode_Test; |
| 204 friend class fpdf_font_StringToWideString_Test; | 204 friend class fpdf_font_StringToWideString_Test; |
| 205 | 205 |
| 206 static uint32_t StringToCode(const CFX_ByteStringC& str); | 206 static uint32_t StringToCode(const CFX_ByteStringC& str); |
| 207 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); | 207 static CFX_WideString StringToWideString(const CFX_ByteStringC& str); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ | 210 #endif // CORE_FPDFAPI_FPDF_FONT_FONT_INT_H_ |
| OLD | NEW |