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 #include "../../include/fxcrt/fx_basic.h" | 7 #include "core/include/fxcrt/fx_basic.h" |
8 #include "../../include/fxcrt/fx_ext.h" | 8 #include "core/include/fxcrt/fx_ext.h" |
9 #include "extension.h" | 9 #include "extension.h" |
| 10 |
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
11 #include <wincrypt.h> | 12 #include <wincrypt.h> |
12 #else | 13 #else |
13 #include <ctime> | 14 #include <ctime> |
14 #endif | 15 #endif |
15 | 16 |
16 IFX_FileAccess* FX_CreateDefaultFileAccess(const CFX_WideStringC& wsPath) { | 17 IFX_FileAccess* FX_CreateDefaultFileAccess(const CFX_WideStringC& wsPath) { |
17 if (wsPath.GetLength() == 0) | 18 if (wsPath.GetLength() == 0) |
18 return NULL; | 19 return NULL; |
19 | 20 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; | 344 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; |
344 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { | 345 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { |
345 *pBuf++ = L'-'; | 346 *pBuf++ = L'-'; |
346 } | 347 } |
347 } | 348 } |
348 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); | 349 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); |
349 } | 350 } |
350 #ifdef __cplusplus | 351 #ifdef __cplusplus |
351 } | 352 } |
352 #endif | 353 #endif |
OLD | NEW |