| 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_LOCALEIMP_H_ | 7 #ifndef XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_ |
| 8 #define XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_ | 8 #define XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_ |
| 9 | 9 |
| 10 #include "xfa/fgas/localization/fgas_locale.h" | 10 #include "xfa/fgas/localization/fgas_locale.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class CFX_FormatString : public IFX_FormatString { | 47 class CFX_FormatString : public IFX_FormatString { |
| 48 public: | 48 public: |
| 49 CFX_FormatString(IFX_LocaleMgr* pLocaleMgr, FX_BOOL bUseLCID); | 49 CFX_FormatString(IFX_LocaleMgr* pLocaleMgr, FX_BOOL bUseLCID); |
| 50 virtual void Release() { delete this; } | 50 virtual void Release() { delete this; } |
| 51 | 51 |
| 52 virtual void SplitFormatString(const CFX_WideString& wsFormatString, | 52 virtual void SplitFormatString(const CFX_WideString& wsFormatString, |
| 53 CFX_WideStringArray& wsPatterns); | 53 CFX_WideStringArray& wsPatterns); |
| 54 virtual FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern); | 54 virtual FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern); |
| 55 virtual FX_WORD GetLCID(const CFX_WideString& wsPattern); | 55 virtual uint16_t GetLCID(const CFX_WideString& wsPattern); |
| 56 virtual CFX_WideString GetLocaleName(const CFX_WideString& wsPattern); | 56 virtual CFX_WideString GetLocaleName(const CFX_WideString& wsPattern); |
| 57 virtual FX_BOOL ParseText(const CFX_WideString& wsSrcText, | 57 virtual FX_BOOL ParseText(const CFX_WideString& wsSrcText, |
| 58 const CFX_WideString& wsPattern, | 58 const CFX_WideString& wsPattern, |
| 59 CFX_WideString& wsValue); | 59 CFX_WideString& wsValue); |
| 60 virtual FX_BOOL ParseNum(const CFX_WideString& wsSrcNum, | 60 virtual FX_BOOL ParseNum(const CFX_WideString& wsSrcNum, |
| 61 const CFX_WideString& wsPattern, | 61 const CFX_WideString& wsPattern, |
| 62 FX_FLOAT& fValue); | 62 FX_FLOAT& fValue); |
| 63 virtual FX_BOOL ParseNum(const CFX_WideString& wsSrcNum, | 63 virtual FX_BOOL ParseNum(const CFX_WideString& wsSrcNum, |
| 64 const CFX_WideString& wsPattern, | 64 const CFX_WideString& wsPattern, |
| 65 CFX_WideString& wsValue); | 65 CFX_WideString& wsValue); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern, | 113 FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern, |
| 114 IFX_Locale*& pLocale, | 114 IFX_Locale*& pLocale, |
| 115 CFX_WideString& wsDatePattern, | 115 CFX_WideString& wsDatePattern, |
| 116 CFX_WideString& wsTimePattern); | 116 CFX_WideString& wsTimePattern); |
| 117 IFX_Locale* GetPatternLocale(const CFX_WideStringC& wsLocale); | 117 IFX_Locale* GetPatternLocale(const CFX_WideStringC& wsLocale); |
| 118 IFX_LocaleMgr* m_pLocaleMgr; | 118 IFX_LocaleMgr* m_pLocaleMgr; |
| 119 FX_BOOL m_bUseLCID; | 119 FX_BOOL m_bUseLCID; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_ | 122 #endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_ |
| OLD | NEW |