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 "core/fxcrt/extension.h" | 7 #include "core/fxcrt/extension.h" |
8 #include "core/include/fxcrt/fx_basic.h" | 8 #include "core/fxcrt/include/fx_basic.h" |
9 #include "core/include/fxcrt/fx_ext.h" | 9 #include "core/fxcrt/include/fx_ext.h" |
10 | 10 |
11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
12 #include <wincrypt.h> | 12 #include <wincrypt.h> |
13 #else | 13 #else |
14 #include <ctime> | 14 #include <ctime> |
15 #endif | 15 #endif |
16 | 16 |
17 CFX_CRTFileStream::CFX_CRTFileStream(IFXCRT_FileAccess* pFA) | 17 CFX_CRTFileStream::CFX_CRTFileStream(IFXCRT_FileAccess* pFA) |
18 : m_pFile(pFA), m_dwCount(1) {} | 18 : m_pFile(pFA), m_dwCount(1) {} |
19 | 19 |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 b = ((const uint8_t*)pGUID)[i]; | 379 b = ((const uint8_t*)pGUID)[i]; |
380 *pBuf++ = gs_FX_pHexChars[b >> 4]; | 380 *pBuf++ = gs_FX_pHexChars[b >> 4]; |
381 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; | 381 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; |
382 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { | 382 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { |
383 *pBuf++ = L'-'; | 383 *pBuf++ = L'-'; |
384 } | 384 } |
385 } | 385 } |
386 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); | 386 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); |
387 } | 387 } |
388 #endif // PDF_ENABLE_XFA | 388 #endif // PDF_ENABLE_XFA |
OLD | NEW |