Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: core/fxcrt/include/fx_ext.h

Issue 2341683005: Add string pools to save storage. (Closed)
Patch Set: fix compile Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_FXCRT_INCLUDE_FX_EXT_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_EXT_H_
8 #define CORE_FXCRT_INCLUDE_FX_EXT_H_ 8 #define CORE_FXCRT_INCLUDE_FX_EXT_H_
9 9
10 #include <cctype> 10 #include <cctype>
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return std::isdigit(c) ? c - '0' : 0; 76 return std::isdigit(c) ? c - '0' : 0;
77 } 77 }
78 78
79 inline int FXSYS_toDecimalDigit(const FX_WCHAR c) { 79 inline int FXSYS_toDecimalDigit(const FX_WCHAR c) {
80 return std::iswdigit(c) ? c - L'0' : 0; 80 return std::iswdigit(c) ? c - L'0' : 0;
81 } 81 }
82 82
83 FX_FLOAT FXSYS_FractionalScale(size_t scale_factor, int value); 83 FX_FLOAT FXSYS_FractionalScale(size_t scale_factor, int value);
84 int FXSYS_FractionalScaleCount(); 84 int FXSYS_FractionalScaleCount();
85 85
86 uint32_t FX_HashCode_GetA(const CFX_ByteStringC& str, bool bIgnoreCase);
87 uint32_t FX_HashCode_GetW(const CFX_WideStringC& Str, bool bIgnoreCase);
88
89 void* FX_Random_MT_Start(uint32_t dwSeed); 86 void* FX_Random_MT_Start(uint32_t dwSeed);
90 87 void FX_Random_MT_Close(void* pContext);
91 uint32_t FX_Random_MT_Generate(void* pContext); 88 uint32_t FX_Random_MT_Generate(void* pContext);
92
93 void FX_Random_MT_Close(void* pContext);
94
95 void FX_Random_GenerateBase(uint32_t* pBuffer, int32_t iCount); 89 void FX_Random_GenerateBase(uint32_t* pBuffer, int32_t iCount);
96
97 void FX_Random_GenerateMT(uint32_t* pBuffer, int32_t iCount); 90 void FX_Random_GenerateMT(uint32_t* pBuffer, int32_t iCount);
98
99 void FX_Random_GenerateCrypto(uint32_t* pBuffer, int32_t iCount); 91 void FX_Random_GenerateCrypto(uint32_t* pBuffer, int32_t iCount);
100 92
101 #ifdef PDF_ENABLE_XFA 93 #ifdef PDF_ENABLE_XFA
102 typedef struct FX_GUID { 94 typedef struct FX_GUID {
103 uint32_t data1; 95 uint32_t data1;
104 uint16_t data2; 96 uint16_t data2;
105 uint16_t data3; 97 uint16_t data3;
106 uint8_t data4[8]; 98 uint8_t data4[8];
107 } FX_GUID, *FX_LPGUID; 99 } FX_GUID, *FX_LPGUID;
108 typedef FX_GUID const* FX_LPCGUID; 100 typedef FX_GUID const* FX_LPCGUID;
(...skipping 20 matching lines...) Expand all
129 j -= gap; 121 j -= gap;
130 } 122 }
131 pArray[j + gap] = v1; 123 pArray[j + gap] = v1;
132 } 124 }
133 gap >>= 1; 125 gap >>= 1;
134 } 126 }
135 } 127 }
136 }; 128 };
137 129
138 #endif // CORE_FXCRT_INCLUDE_FX_EXT_H_ 130 #endif // CORE_FXCRT_INCLUDE_FX_EXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698