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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "core/fxcrt/extension.h" | 9 #include "core/fxcrt/extension.h" |
10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/fx_basic.h" |
11 #include "core/fxcrt/include/fx_ext.h" | 11 #include "core/fxcrt/fx_ext.h" |
12 | 12 |
13 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 13 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
14 #include <wincrypt.h> | 14 #include <wincrypt.h> |
15 #else | 15 #else |
16 #include <ctime> | 16 #include <ctime> |
17 #endif | 17 #endif |
18 | 18 |
19 #ifdef PDF_ENABLE_XFA | 19 #ifdef PDF_ENABLE_XFA |
20 | 20 |
21 CFX_CRTFileAccess::CFX_CRTFileAccess() : m_RefCount(0) {} | 21 CFX_CRTFileAccess::CFX_CRTFileAccess() : m_RefCount(0) {} |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 b = ((const uint8_t*)pGUID)[i]; | 609 b = ((const uint8_t*)pGUID)[i]; |
610 *pBuf++ = gs_FX_pHexChars[b >> 4]; | 610 *pBuf++ = gs_FX_pHexChars[b >> 4]; |
611 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; | 611 *pBuf++ = gs_FX_pHexChars[b & 0x0F]; |
612 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { | 612 if (bSeparator && (i == 3 || i == 5 || i == 7 || i == 9)) { |
613 *pBuf++ = L'-'; | 613 *pBuf++ = L'-'; |
614 } | 614 } |
615 } | 615 } |
616 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); | 616 bsStr.ReleaseBuffer(bSeparator ? 36 : 32); |
617 } | 617 } |
618 #endif // PDF_ENABLE_XFA | 618 #endif // PDF_ENABLE_XFA |
OLD | NEW |