classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] java.util.Locale getISO* patch


From: Andrew John Hughes
Subject: [cp-patches] java.util.Locale getISO* patch
Date: Wed, 5 Jan 2005 16:19:54 +0000
User-agent: Mutt/1.5.6+20040907i

Hi all,

        Attached is a patch to change the getISOLanguages() and 
getISOCountries()
methods to retrieving the data dynamically from the 
gnu.java.locale.LocaleInformation
source, rather than relying on a static set.

        * java/util/Locale.java
        Added two new String[] arrays for caching.
        getLocale(String): documentation
        getLocale(String, String): documentation
        getLocale(String, String, String): documentation
        getISOCountries(): now calls getISOStrings() and caches result
        getISOLanguages(): now calls getISOStrings() and caches result
        getISOStrings(String): pulls all two-letter keys from the specified 
hashtable
        in our locale information.

-- 
Andrew :-)

Please avoid sending me Microsoft Office (e.g. Word, PowerPoint) attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

No software patents in Europe -- http://nosoftwarepatents.com

"Value your freedom, or you will lose it, teaches history. 
`Don't bother us with politics' respond those who don't want to learn." 
-- Richard Stallman

"We've all been part of the biggest beta test the world has ever known --
Windows" 
-- Victor Wheatman, Gartner

Attachment: locale-02.diff
Description: Text document

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]