| 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 XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ | 7 #ifndef XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ |
| 8 #define XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ | 8 #define XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_xml.h" | 10 #include "core/fxcrt/include/fx_xml.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 CFX_WideString& wsPattern) const = 0; | 83 CFX_WideString& wsPattern) const = 0; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 class IFX_LocaleMgr { | 86 class IFX_LocaleMgr { |
| 87 public: | 87 public: |
| 88 virtual ~IFX_LocaleMgr() {} | 88 virtual ~IFX_LocaleMgr() {} |
| 89 virtual void Release() = 0; | 89 virtual void Release() = 0; |
| 90 virtual uint16_t GetDefLocaleID() = 0; | 90 virtual uint16_t GetDefLocaleID() = 0; |
| 91 virtual IFX_Locale* GetDefLocale() = 0; | 91 virtual IFX_Locale* GetDefLocale() = 0; |
| 92 virtual IFX_Locale* GetLocale(uint16_t lcid) = 0; | 92 virtual IFX_Locale* GetLocale(uint16_t lcid) = 0; |
| 93 virtual IFX_Locale* GetLocaleByName(const CFX_WideStringC& wsLocaleName) = 0; | 93 virtual IFX_Locale* GetLocaleByName(const CFX_WideString& wsLocaleName) = 0; |
| 94 }; | 94 }; |
| 95 IFX_LocaleMgr* FX_LocaleMgr_Create(const FX_WCHAR* pszLocalPath, | 95 IFX_LocaleMgr* FX_LocaleMgr_Create(const FX_WCHAR* pszLocalPath, |
| 96 uint16_t wDefaultLCID); | 96 uint16_t wDefaultLCID); |
| 97 void FX_ParseNumString(const CFX_WideString& wsNum, CFX_WideString& wsResult); | 97 void FX_ParseNumString(const CFX_WideString& wsNum, CFX_WideString& wsResult); |
| 98 FX_BOOL FX_DateFromCanonical(const CFX_WideString& wsDate, | 98 FX_BOOL FX_DateFromCanonical(const CFX_WideString& wsDate, |
| 99 CFX_Unitime& datetime); | 99 CFX_Unitime& datetime); |
| 100 FX_BOOL FX_TimeFromCanonical(const CFX_WideStringC& wsTime, | 100 FX_BOOL FX_TimeFromCanonical(const CFX_WideStringC& wsTime, |
| 101 CFX_Unitime& datetime, | 101 CFX_Unitime& datetime, |
| 102 IFX_Locale* pLocale); | 102 IFX_Locale* pLocale); |
| 103 class CFX_Decimal { | 103 class CFX_Decimal { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 CFX_Decimal Multiply(const CFX_Decimal& val) const; | 145 CFX_Decimal Multiply(const CFX_Decimal& val) const; |
| 146 CFX_Decimal Divide(const CFX_Decimal& val) const; | 146 CFX_Decimal Divide(const CFX_Decimal& val) const; |
| 147 CFX_Decimal Modulus(const CFX_Decimal& val) const; | 147 CFX_Decimal Modulus(const CFX_Decimal& val) const; |
| 148 uint32_t m_uFlags; | 148 uint32_t m_uFlags; |
| 149 uint32_t m_uHi; | 149 uint32_t m_uHi; |
| 150 uint32_t m_uLo; | 150 uint32_t m_uLo; |
| 151 uint32_t m_uMid; | 151 uint32_t m_uMid; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ | 154 #endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALE_H_ |
| OLD | NEW |