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

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

Issue 2340513002: Remove more strcmp/memcmp usage. (Closed)
Patch Set: Nit 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 | « core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp ('k') | core/fpdfapi/fpdf_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_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
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
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_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp ('k') | core/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698