| 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 CORE_FXCRT_INCLUDE_FX_STRING_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_STRING_H_ |
| 8 #define CORE_FXCRT_INCLUDE_FX_STRING_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_STRING_H_ |
| 9 | 9 |
| 10 #include <stdint.h> // For intptr_t. | 10 #include <stdint.h> // For intptr_t. |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); | 430 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); |
| 431 } | 431 } |
| 432 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) { | 432 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) { |
| 433 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); | 433 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); |
| 434 } | 434 } |
| 435 | 435 |
| 436 FX_FLOAT FX_atof(const CFX_ByteStringC& str); | 436 FX_FLOAT FX_atof(const CFX_ByteStringC& str); |
| 437 inline FX_FLOAT FX_atof(const CFX_WideStringC& wsStr) { | 437 inline FX_FLOAT FX_atof(const CFX_WideStringC& wsStr) { |
| 438 return FX_atof(FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()).c_str()); | 438 return FX_atof(FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()).c_str()); |
| 439 } | 439 } |
| 440 void FX_atonum(const CFX_ByteStringC& str, FX_BOOL& bInteger, void* pData); | 440 bool FX_atonum(const CFX_ByteStringC& str, void* pData); |
| 441 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf); | 441 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf); |
| 442 | 442 |
| 443 #endif // CORE_FXCRT_INCLUDE_FX_STRING_H_ | 443 #endif // CORE_FXCRT_INCLUDE_FX_STRING_H_ |
| OLD | NEW |