summaryrefslogtreecommitdiff
path: root/xfa/fgas/localization/fgas_localeimp.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-16 16:55:43 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-16 21:55:57 +0000
commit939121f33f9bb02c207094b5b3e78e69be992b84 (patch)
treed42477d9ded35bb5ad3d751a61bab644f83c73e2 /xfa/fgas/localization/fgas_localeimp.h
parent79e548eb98caefd3ea0f0e4806a7abca6654e7dc (diff)
downloadpdfium-939121f33f9bb02c207094b5b3e78e69be992b84.tar.xz
Cleanup some fgas locale code.
This Cl cleans up a bit of the locale code in fgas, removing unused code and cleaning up some of the other code. Change-Id: Ieb18df552cf5d803c1bbdbfe11a4f5a88c4b3af3 Reviewed-on: https://pdfium-review.googlesource.com/3094 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/localization/fgas_localeimp.h')
-rw-r--r--xfa/fgas/localization/fgas_localeimp.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/xfa/fgas/localization/fgas_localeimp.h b/xfa/fgas/localization/fgas_localeimp.h
deleted file mode 100644
index 684dfee20b..0000000000
--- a/xfa/fgas/localization/fgas_localeimp.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_
-#define XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_
-
-#include <vector>
-
-#include "xfa/fgas/localization/fgas_locale.h"
-
-class CFX_LCNumeric;
-
-class CFX_FormatString {
- public:
- CFX_FormatString(IFX_LocaleMgr* pLocaleMgr, bool bUseLCID);
- ~CFX_FormatString();
-
- void SplitFormatString(const CFX_WideString& wsFormatString,
- std::vector<CFX_WideString>& wsPatterns);
- FX_LOCALECATEGORY GetCategory(const CFX_WideString& wsPattern);
- uint16_t GetLCID(const CFX_WideString& wsPattern);
- CFX_WideString GetLocaleName(const CFX_WideString& wsPattern);
- bool ParseText(const CFX_WideString& wsSrcText,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsValue);
- bool ParseNum(const CFX_WideString& wsSrcNum,
- const CFX_WideString& wsPattern,
- float& fValue);
- bool ParseNum(const CFX_WideString& wsSrcNum,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsValue);
- bool ParseDateTime(const CFX_WideString& wsSrcDateTime,
- const CFX_WideString& wsPattern,
- FX_DATETIMETYPE eDateTimeType,
- CFX_Unitime& dtValue);
- bool ParseZero(const CFX_WideString& wsSrcText,
- const CFX_WideString& wsPattern);
- bool ParseNull(const CFX_WideString& wsSrcText,
- const CFX_WideString& wsPattern);
- bool FormatText(const CFX_WideString& wsSrcText,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatNum(const CFX_WideString& wsSrcNum,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatNum(float fNum,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatDateTime(const CFX_WideString& wsSrcDateTime,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatDateTime(const CFX_WideString& wsSrcDateTime,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput,
- FX_DATETIMETYPE eDateTimeType);
- bool FormatDateTime(const CFX_Unitime& dt,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatZero(const CFX_WideString& wsPattern, CFX_WideString& wsOutput);
- bool FormatNull(const CFX_WideString& wsPattern, CFX_WideString& wsOutput);
-
- protected:
- IFX_Locale* GetTextFormat(const CFX_WideString& wsPattern,
- const CFX_WideStringC& wsCategory,
- CFX_WideString& wsPurgePattern);
- IFX_Locale* GetNumericFormat(const CFX_WideString& wsPattern,
- int32_t& iDotIndex,
- uint32_t& dwStyle,
- CFX_WideString& wsPurgePattern);
- bool FormatStrNum(const CFX_WideStringC& wsInputNum,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- bool FormatLCNumeric(CFX_LCNumeric& lcNum,
- const CFX_WideString& wsPattern,
- CFX_WideString& wsOutput);
- FX_DATETIMETYPE GetDateTimeFormat(const CFX_WideString& wsPattern,
- IFX_Locale*& pLocale,
- CFX_WideString& wsDatePattern,
- CFX_WideString& wsTimePattern);
- IFX_Locale* GetPatternLocale(const CFX_WideString& wsLocale);
-
- IFX_LocaleMgr* m_pLocaleMgr;
- bool m_bUseLCID;
-};
-
-#endif // XFA_FGAS_LOCALIZATION_FGAS_LOCALEIMP_H_