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/include/fxcrt/fx_string.h

Issue 1603173004: Merge to XFA: Bugs in CJS_PublicMethods::ParseNumber(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Field.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INCLUDE_FXCRT_FX_STRING_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_STRING_H_
8 #define CORE_INCLUDE_FXCRT_FX_STRING_H_ 8 #define CORE_INCLUDE_FXCRT_FX_STRING_H_
9 9
10 #include <stdint.h> // For intptr_t. 10 #include <stdint.h> // For intptr_t.
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 } 787 }
788 inline bool operator==(const CFX_WideStringC& lhs, const CFX_WideString& rhs) { 788 inline bool operator==(const CFX_WideStringC& lhs, const CFX_WideString& rhs) {
789 return rhs == lhs; 789 return rhs == lhs;
790 } 790 }
791 inline bool operator!=(const wchar_t* lhs, const CFX_WideString& rhs) { 791 inline bool operator!=(const wchar_t* lhs, const CFX_WideString& rhs) {
792 return rhs != lhs; 792 return rhs != lhs;
793 } 793 }
794 inline bool operator!=(const CFX_WideStringC& lhs, const CFX_WideString& rhs) { 794 inline bool operator!=(const CFX_WideStringC& lhs, const CFX_WideString& rhs) {
795 return rhs != lhs; 795 return rhs != lhs;
796 } 796 }
797 FX_FLOAT FX_atof(const CFX_ByteStringC& str); 797
798 void FX_atonum(const CFX_ByteStringC& str, FX_BOOL& bInteger, void* pData);
799 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf);
800 CFX_ByteString FX_UTF8Encode(const FX_WCHAR* pwsStr, FX_STRSIZE len); 798 CFX_ByteString FX_UTF8Encode(const FX_WCHAR* pwsStr, FX_STRSIZE len);
801 inline CFX_ByteString FX_UTF8Encode(const CFX_WideStringC& wsStr) { 799 inline CFX_ByteString FX_UTF8Encode(const CFX_WideStringC& wsStr) {
802 return FX_UTF8Encode(wsStr.GetPtr(), wsStr.GetLength()); 800 return FX_UTF8Encode(wsStr.GetPtr(), wsStr.GetLength());
803 } 801 }
804 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) { 802 inline CFX_ByteString FX_UTF8Encode(const CFX_WideString& wsStr) {
805 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength()); 803 return FX_UTF8Encode(wsStr.c_str(), wsStr.GetLength());
806 } 804 }
807 805
806 FX_FLOAT FX_atof(const CFX_ByteStringC& str);
807 inline FX_FLOAT FX_atof(const CFX_WideStringC& wsStr) {
808 return FX_atof(FX_UTF8Encode(wsStr.GetPtr(), wsStr.GetLength()));
809 }
810 void FX_atonum(const CFX_ByteStringC& str, FX_BOOL& bInteger, void* pData);
811 FX_STRSIZE FX_ftoa(FX_FLOAT f, FX_CHAR* buf);
812
808 #endif // CORE_INCLUDE_FXCRT_FX_STRING_H_ 813 #endif // CORE_INCLUDE_FXCRT_FX_STRING_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Field.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698