| 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_INCLUDE_FXCRT_FX_BASIC_H_ | 7 #ifndef CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| 9 | 9 |
| 10 #include "fx_memory.h" | 10 #include "fx_memory.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 FX_STRSIZE m_Length; | 158 FX_STRSIZE m_Length; |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 class CFX_FileBufferArchive : public IFX_BufferArchive { | 161 class CFX_FileBufferArchive : public IFX_BufferArchive { |
| 162 public: | 162 public: |
| 163 CFX_FileBufferArchive(FX_STRSIZE size = 32768); | 163 CFX_FileBufferArchive(FX_STRSIZE size = 32768); |
| 164 ~CFX_FileBufferArchive() override; | 164 ~CFX_FileBufferArchive() override; |
| 165 | 165 |
| 166 void Clear() override; | 166 void Clear() override; |
| 167 | |
| 168 FX_BOOL AttachFile(IFX_StreamWrite* pFile, FX_BOOL bTakeover = FALSE); | 167 FX_BOOL AttachFile(IFX_StreamWrite* pFile, FX_BOOL bTakeover = FALSE); |
| 169 | 168 |
| 170 FX_BOOL AttachFile(const FX_WCHAR* filename); | |
| 171 | |
| 172 FX_BOOL AttachFile(const FX_CHAR* filename); | |
| 173 | |
| 174 private: | 169 private: |
| 175 FX_BOOL DoWork(const void* pBuf, size_t size) override; | 170 FX_BOOL DoWork(const void* pBuf, size_t size) override; |
| 176 | 171 |
| 177 IFX_StreamWrite* m_pFile; | 172 IFX_StreamWrite* m_pFile; |
| 178 | |
| 179 FX_BOOL m_bTakeover; | 173 FX_BOOL m_bTakeover; |
| 180 }; | 174 }; |
| 181 | 175 |
| 182 struct CFX_CharMap { | 176 struct CFX_CharMap { |
| 183 static CFX_CharMap* GetDefaultMapper(int32_t codepage = 0); | 177 static CFX_CharMap* GetDefaultMapper(int32_t codepage = 0); |
| 184 | 178 |
| 185 CFX_WideString (*m_GetWideString)(CFX_CharMap* pMap, | 179 CFX_WideString (*m_GetWideString)(CFX_CharMap* pMap, |
| 186 const CFX_ByteString& bstr); | 180 const CFX_ByteString& bstr); |
| 187 | 181 |
| 188 CFX_ByteString (*m_GetByteString)(CFX_CharMap* pMap, | 182 CFX_ByteString (*m_GetByteString)(CFX_CharMap* pMap, |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 FX_FLOAT c; | 1271 FX_FLOAT c; |
| 1278 FX_FLOAT d; | 1272 FX_FLOAT d; |
| 1279 FX_FLOAT e; | 1273 FX_FLOAT e; |
| 1280 FX_FLOAT f; | 1274 FX_FLOAT f; |
| 1281 FX_FLOAT g; | 1275 FX_FLOAT g; |
| 1282 FX_FLOAT h; | 1276 FX_FLOAT h; |
| 1283 FX_FLOAT i; | 1277 FX_FLOAT i; |
| 1284 }; | 1278 }; |
| 1285 | 1279 |
| 1286 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ | 1280 #endif // CORE_INCLUDE_FXCRT_FX_BASIC_H_ |
| OLD | NEW |