summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2018-04-16 21:01:58 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-16 21:01:58 +0000
commit574ee81e426a7390e5cdf28f2fe8ec03f6c2da98 (patch)
tree8e76dbf6be872f1008738b437fb6c63f6c23096b /core/fxcrt
parentc49e62e40ed87cdcab08b8975b7822727ba9dd72 (diff)
downloadpdfium-574ee81e426a7390e5cdf28f2fe8ec03f6c2da98.tar.xz
Split GetNumbericSymbol into individual methods
This CL removes the GetNumbericSymbol method and adds individual methods for each symbol we retrieve. Change-Id: Id14108e5ea43a76250e18a1aa13bdbb05e928cdc Reviewed-on: https://pdfium-review.googlesource.com/30695 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/locale_iface.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/core/fxcrt/locale_iface.h b/core/fxcrt/locale_iface.h
index 0adfb19682..7e0ca6fd32 100644
--- a/core/fxcrt/locale_iface.h
+++ b/core/fxcrt/locale_iface.h
@@ -10,16 +10,6 @@
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/fx_string.h"
-enum FX_LOCALENUMSYMBOL {
- FX_LOCALENUMSYMBOL_Decimal,
- FX_LOCALENUMSYMBOL_Grouping,
- FX_LOCALENUMSYMBOL_Percent,
- FX_LOCALENUMSYMBOL_Minus,
- FX_LOCALENUMSYMBOL_Zero,
- FX_LOCALENUMSYMBOL_CurrencySymbol,
- FX_LOCALENUMSYMBOL_CurrencyName,
-};
-
enum FX_LOCALEDATETIMESUBCATEGORY {
FX_LOCALEDATETIMESUBCATEGORY_Default,
FX_LOCALEDATETIMESUBCATEGORY_Short,
@@ -59,7 +49,11 @@ class LocaleIface {
virtual ~LocaleIface() {}
virtual WideString GetName() const = 0;
- virtual WideString GetNumbericSymbol(FX_LOCALENUMSYMBOL eType) const = 0;
+ virtual WideString GetDecimalSymbol() const = 0;
+ virtual WideString GetGroupingSymbol() const = 0;
+ virtual WideString GetPercentSymbol() const = 0;
+ virtual WideString GetMinusSymbol() const = 0;
+ virtual WideString GetCurrencySymbol() const = 0;
virtual WideString GetDateTimeSymbols() const = 0;
virtual WideString GetMonthName(int32_t nMonth, bool bAbbr) const = 0;
virtual WideString GetDayName(int32_t nWeek, bool bAbbr) const = 0;