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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual FX_BOOL FormatNull(const CFX_WideString& wsPattern, | 95 virtual FX_BOOL FormatNull(const CFX_WideString& wsPattern, |
96 CFX_WideString& wsOutput); | 96 CFX_WideString& wsOutput); |
97 | 97 |
98 protected: | 98 protected: |
99 virtual ~CFX_FormatString(); | 99 virtual ~CFX_FormatString(); |
100 IFX_Locale* GetTextFormat(const CFX_WideString& wsPattern, | 100 IFX_Locale* GetTextFormat(const CFX_WideString& wsPattern, |
101 const CFX_WideStringC& wsCategory, | 101 const CFX_WideStringC& wsCategory, |
102 CFX_WideString& wsPurgePattern); | 102 CFX_WideString& wsPurgePattern); |
103 IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern, | 103 IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern, |
104 int32_t& iDotIndex, | 104 int32_t& iDotIndex, |
105 FX_DWORD& dwStyle, | 105 uint32_t& dwStyle, |
106 CFX_WideString& wsPurgePattern); | 106 CFX_WideString& wsPurgePattern); |
107 FX_BOOL FormatStrNum(const CFX_WideStringC& wsInputNum, | 107 FX_BOOL FormatStrNum(const CFX_WideStringC& wsInputNum, |
108 const CFX_WideString& wsPattern, | 108 const CFX_WideString& wsPattern, |
109 CFX_WideString& wsOutput); | 109 CFX_WideString& wsOutput); |
110 FX_BOOL FormatLCNumeric(CFX_LCNumeric& lcNum, | 110 FX_BOOL FormatLCNumeric(CFX_LCNumeric& lcNum, |
111 const CFX_WideString& wsPattern, | 111 const CFX_WideString& wsPattern, |
112 CFX_WideString& wsOutput); | 112 CFX_WideString& wsOutput); |
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 |