aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/Currency.h
diff options
context:
space:
mode:
authorTania Bento <tbento@redhat.com>2007-04-05 00:15:16 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-04-05 00:15:16 +0000
commit618bf37b0547c0e994af34ea1e128af320410736 (patch)
treeb659460d69becef2f5b04af277ac9f35a6b13f7f /libjava/java/util/Currency.h
parentdabf62003ec4a2d31f5b276650b1554db840601a (diff)
downloadgcc-618bf37b0547c0e994af34ea1e128af320410736.zip
gcc-618bf37b0547c0e994af34ea1e128af320410736.tar.gz
gcc-618bf37b0547c0e994af34ea1e128af320410736.tar.bz2
DecimalFormatSymbols.java: Added the year 2007 to Copyright information and introduced new variable, currency.
2007-04-04 Tania Bento <tbento@redhat.com> * java/text/DecimalFormatSymbols.java: Added the year 2007 to Copyright information and introduced new variable, currency. (DecimalFormatSymbols(Locale)): Define currency and intlCurrencySymbol to "XXX", currencySymbol to "?" and localCurrency appropriately. (getCurrency): Fixed documentation and return the value of currency. (setCurrency): Fixed documentation and update the value of currency. (setInternationalCurrencySymbol): Fixed documentation and update the value of currency. * java/util/Currency.java: Introduced two new variables, properties and fractionDigits. In the static block, a properties object is created and the currency resource is loaded. (Currency(Locale)): fractionDigits is defined. (Currency(String)): New method. (getDefaultFractionDigits): Return the value of fractionDigits. (getInstance(String)): Check if String is equal to "XXX". From-SVN: r123512
Diffstat (limited to 'libjava/java/util/Currency.h')
-rw-r--r--libjava/java/util/Currency.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/util/Currency.h b/libjava/java/util/Currency.h
index c868cef..ac8878c 100644
--- a/libjava/java/util/Currency.h
+++ b/libjava/java/util/Currency.h
@@ -13,6 +13,7 @@ class java::util::Currency : public ::java::lang::Object
Currency();
Currency(::java::util::Locale *);
+ Currency(::java::lang::String *);
public:
::java::lang::String * getCurrencyCode();
jint getDefaultFractionDigits();
@@ -28,7 +29,9 @@ public: // actually package-private
private:
::java::util::Locale * __attribute__((aligned(__alignof__( ::java::lang::Object)))) locale;
::java::util::ResourceBundle * res;
+ static ::java::util::Properties * properties;
::java::lang::String * currencyCode;
+ jint fractionDigits;
static ::java::util::Map * cache;
public:
static ::java::lang::Class class$;