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 <limits> | |
8 #include <cctype> | 7 #include <cctype> |
9 #include <cwctype> | 8 #include <cwctype> |
| 9 #include <limits> |
10 | 10 |
11 #include "core/include/fxcrt/fx_ext.h" | 11 #include "core/include/fxcrt/fx_ext.h" |
12 #include "core/include/fxcrt/fx_string.h" | 12 #include "core/include/fxcrt/fx_string.h" |
13 | 13 |
14 template <class T> | 14 template <class T> |
15 T FXSYS_StrToInt(const FX_CHAR* str) { | 15 T FXSYS_StrToInt(const FX_CHAR* str) { |
16 FX_BOOL neg = FALSE; | 16 FX_BOOL neg = FALSE; |
17 if (!str) | 17 if (!str) |
18 return 0; | 18 return 0; |
19 | 19 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 buf[wlen] = bstr[i]; | 251 buf[wlen] = bstr[i]; |
252 } | 252 } |
253 wlen++; | 253 wlen++; |
254 } | 254 } |
255 return wlen; | 255 return wlen; |
256 } | 256 } |
257 #ifdef __cplusplus | 257 #ifdef __cplusplus |
258 } | 258 } |
259 #endif | 259 #endif |
260 #endif | 260 #endif |
OLD | NEW |