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

Side by Side Diff: xfa/src/fgas/src/localization/fx_locale.cpp

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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 | « xfa/src/fgas/src/layout/fx_textbreak.h ('k') | xfa/src/fgas/src/localization/fx_localeimp.h » ('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 #include "../fgas_base.h" 7 #include "../fgas_base.h"
8 #include "fx_localeimp.h" 8 #include "fx_localeimp.h"
9 #define FX_LOCALECATEGORY_DateHash 0xbde9abde 9 #define FX_LOCALECATEGORY_DateHash 0xbde9abde
10 #define FX_LOCALECATEGORY_TimeHash 0x2d71b00f 10 #define FX_LOCALECATEGORY_TimeHash 0x2d71b00f
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); 249 return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
250 } 250 }
251 static FX_BOOL FX_IsSpace(FX_WCHAR c) 251 static FX_BOOL FX_IsSpace(FX_WCHAR c)
252 { 252 {
253 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09); 253 return (c == 0x20) || (c == 0x0d) || (c == 0x0a) || (c == 0x09);
254 } 254 }
255 static const FX_FLOAT gs_fraction_scales[] = {0.1f, 0.01f, 0.001f, 0.0001f, 0.00 001f, 0.000001f, 255 static const FX_FLOAT gs_fraction_scales[] = {0.1f, 0.01f, 0.001f, 0.0001f, 0.00 001f, 0.000001f,
256 0.0000001f, 0.00000001f, 0.0000000 01f, 0.0000000001f, 0.00000000001f 256 0.0000001f, 0.00000001f, 0.0000000 01f, 0.0000000001f, 0.00000000001f
257 }; 257 };
258 static const FX_INT32 gs_fraction_count = sizeof(gs_fraction_scales) / sizeof(FX _FLOAT); 258 static const FX_INT32 gs_fraction_count = sizeof(gs_fraction_scales) / sizeof(FX _FLOAT);
259 class CFX_LCNumeric : public CFX_Object 259 class CFX_LCNumeric
260 { 260 {
261 public: 261 public:
262 CFX_LCNumeric(); 262 CFX_LCNumeric();
263 CFX_LCNumeric(FX_INT64 integral, FX_DWORD fractional = 0, FX_INT32 exponent = 0); 263 CFX_LCNumeric(FX_INT64 integral, FX_DWORD fractional = 0, FX_INT32 exponent = 0);
264 CFX_LCNumeric(FX_FLOAT dbRetValue); 264 CFX_LCNumeric(FX_FLOAT dbRetValue);
265 CFX_LCNumeric(double dbvalue); 265 CFX_LCNumeric(double dbvalue);
266 CFX_LCNumeric(CFX_WideString& wsNumeric); 266 CFX_LCNumeric(CFX_WideString& wsNumeric);
267 267
268 FX_FLOAT GetFloat() const; 268 FX_FLOAT GetFloat() const;
269 double GetDouble() const; 269 double GetDouble() const;
(...skipping 4678 matching lines...) Expand 10 before | Expand all | Expand 10 after
4948 return Multiply(val); 4948 return Multiply(val);
4949 } 4949 }
4950 CFX_Decimal CFX_Decimal::operator / (const CFX_Decimal& val) const 4950 CFX_Decimal CFX_Decimal::operator / (const CFX_Decimal& val) const
4951 { 4951 {
4952 return Divide(val); 4952 return Divide(val);
4953 } 4953 }
4954 CFX_Decimal CFX_Decimal::operator % (const CFX_Decimal& val) const 4954 CFX_Decimal CFX_Decimal::operator % (const CFX_Decimal& val) const
4955 { 4955 {
4956 return Modulus(val); 4956 return Modulus(val);
4957 } 4957 }
OLDNEW
« no previous file with comments | « xfa/src/fgas/src/layout/fx_textbreak.h ('k') | xfa/src/fgas/src/localization/fx_localeimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698