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 XFA_SRC_FGAS_CRT_FGAS_ALGORITHM_H_ | 7 #ifndef XFA_FGAS_CRT_FGAS_ALGORITHM_H_ |
8 #define XFA_SRC_FGAS_CRT_FGAS_ALGORITHM_H_ | 8 #define XFA_FGAS_CRT_FGAS_ALGORITHM_H_ |
9 | 9 |
10 #include <cstdint> | 10 #include <cstdint> |
11 | 11 |
12 #include "core/include/fxcrt/fx_basic.h" | 12 #include "core/include/fxcrt/fx_basic.h" |
13 | 13 |
14 #ifdef __cplusplus | 14 #ifdef __cplusplus |
15 extern "C" { | 15 extern "C" { |
16 #endif | 16 #endif |
17 | 17 |
18 int32_t FX_Base64EncodeA(const uint8_t* pSrc, int32_t iSrcLen, FX_CHAR* pDst); | 18 int32_t FX_Base64EncodeA(const uint8_t* pSrc, int32_t iSrcLen, FX_CHAR* pDst); |
(...skipping 25 matching lines...) Expand all Loading... |
44 } else if (find < v) { | 44 } else if (find < v) { |
45 iEnd = iMid - 1; | 45 iEnd = iMid - 1; |
46 } else { | 46 } else { |
47 iStart = iMid + 1; | 47 iStart = iMid + 1; |
48 } | 48 } |
49 } while (iStart <= iEnd); | 49 } while (iStart <= iEnd); |
50 return -1; | 50 return -1; |
51 } | 51 } |
52 }; | 52 }; |
53 | 53 |
54 #endif // XFA_SRC_FGAS_CRT_FGAS_ALGORITHM_H_ | 54 #endif // XFA_FGAS_CRT_FGAS_ALGORITHM_H_ |
OLD | NEW |