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 _FX_LOCALE_H_ | 7 #ifndef _FX_LOCALE_H_ |
8 #define _FX_LOCALE_H_ | 8 #define _FX_LOCALE_H_ |
9 class CFX_Unitime; | 9 class CFX_Unitime; |
10 class IFX_Locale; | 10 class IFX_Locale; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual FX_BOOL ParseNull(const CFX_WideString& wsSrcText, const CFX_WideStr
ing& wsPattern) = 0; | 101 virtual FX_BOOL ParseNull(const CFX_WideString& wsSrcText, const CFX_WideStr
ing& wsPattern) = 0; |
102 virtual FX_BOOL FormatText(const CFX_WideString& wsSrcText, const CFX_Wi
deString& wsPattern, CFX_WideString& wsOutput) = 0; | 102 virtual FX_BOOL FormatText(const CFX_WideString& wsSrcText, const CFX_Wi
deString& wsPattern, CFX_WideString& wsOutput) = 0; |
103 virtual FX_BOOL FormatNum(const CFX_WideString& wsSrcNum, const CFX_Wide
String& wsPattern, CFX_WideString& wsOutput) = 0; | 103 virtual FX_BOOL FormatNum(const CFX_WideString& wsSrcNum, const CFX_Wide
String& wsPattern, CFX_WideString& wsOutput) = 0; |
104 virtual FX_BOOL FormatNum(FX_FLOAT fNum, const CFX_WideString& wsPattern
, CFX_WideString& wsOutput) = 0; | 104 virtual FX_BOOL FormatNum(FX_FLOAT fNum, const CFX_WideString& wsPattern
, CFX_WideString& wsOutput) = 0; |
105 virtual FX_BOOL FormatDateTime(const CFX_WideString& wsSrcDateTime, cons
t CFX_WideString& wsPattern, CFX_WideString& wsOutput) = 0; | 105 virtual FX_BOOL FormatDateTime(const CFX_WideString& wsSrcDateTime, cons
t CFX_WideString& wsPattern, CFX_WideString& wsOutput) = 0; |
106 virtual FX_BOOL FormatDateTime(const CFX_WideString& wsSrcDateTime, cons
t CFX_WideString& wsPattern, CFX_WideString& wsOutput, FX_DATETIMETYPE eDateTime
Type) = 0; | 106 virtual FX_BOOL FormatDateTime(const CFX_WideString& wsSrcDateTime, cons
t CFX_WideString& wsPattern, CFX_WideString& wsOutput, FX_DATETIMETYPE eDateTime
Type) = 0; |
107 virtual FX_BOOL FormatDateTime(const CFX_Unitime& dt, const CFX_WideStri
ng& wsPattern, CFX_WideString& wsOutput) = 0; | 107 virtual FX_BOOL FormatDateTime(const CFX_Unitime& dt, const CFX_WideStri
ng& wsPattern, CFX_WideString& wsOutput) = 0; |
108 virtual FX_BOOL FormatZero(const CFX_WideString& wsPattern, CFX_WideString&
wsOutput) = 0; | 108 virtual FX_BOOL FormatZero(const CFX_WideString& wsPattern, CFX_WideString&
wsOutput) = 0; |
109 virtual FX_BOOL FormatNull(const CFX_WideString& wsPattern, CFX_WideString&
wsOutput) = 0; | 109 virtual FX_BOOL FormatNull(const CFX_WideString& wsPattern, CFX_WideString&
wsOutput) = 0; |
110 }; | 110 }; |
111 class CFX_Decimal : CFX_Object | 111 class CFX_Decimal |
112 { | 112 { |
113 public: | 113 public: |
114 CFX_Decimal(); | 114 CFX_Decimal(); |
115 CFX_Decimal(FX_UINT32 val); | 115 CFX_Decimal(FX_UINT32 val); |
116 CFX_Decimal(FX_UINT64 val); | 116 CFX_Decimal(FX_UINT64 val); |
117 CFX_Decimal(FX_INT32 val); | 117 CFX_Decimal(FX_INT32 val); |
118 CFX_Decimal(FX_INT64 val); | 118 CFX_Decimal(FX_INT64 val); |
119 CFX_Decimal(FX_FLOAT val, FX_UINT8 scale = 3); | 119 CFX_Decimal(FX_FLOAT val, FX_UINT8 scale = 3); |
120 CFX_Decimal(FX_WSTR str); | 120 CFX_Decimal(FX_WSTR str); |
121 CFX_Decimal(FX_BSTR str); | 121 CFX_Decimal(FX_BSTR str); |
(...skipping 29 matching lines...) Expand all Loading... |
151 CFX_Decimal AddOrMinus(const CFX_Decimal& val, FX_BOOL isAdding) con
st; | 151 CFX_Decimal AddOrMinus(const CFX_Decimal& val, FX_BOOL isAdding) con
st; |
152 CFX_Decimal Multiply(const CFX_Decimal& val) const; | 152 CFX_Decimal Multiply(const CFX_Decimal& val) const; |
153 CFX_Decimal Divide(const CFX_Decimal& val) const; | 153 CFX_Decimal Divide(const CFX_Decimal& val) const; |
154 CFX_Decimal Modulus(const CFX_Decimal& val) const; | 154 CFX_Decimal Modulus(const CFX_Decimal& val) const; |
155 FX_UINT32 m_uFlags; | 155 FX_UINT32 m_uFlags; |
156 FX_UINT32 m_uHi; | 156 FX_UINT32 m_uHi; |
157 FX_UINT32 m_uLo; | 157 FX_UINT32 m_uLo; |
158 FX_UINT32 m_uMid; | 158 FX_UINT32 m_uMid; |
159 }; | 159 }; |
160 #endif | 160 #endif |
OLD | NEW |