Proposal: Locale::createCanonical

Alan S Liu <[email protected]> Mon, 17 May 2004 11:40:11 -0600
Newsgroups gmane.comp.lib.icu.general
Message-ID <OF9FC222A3.CFAE510D-ON88256E95.001C31EB-88256E97.00610F90@us.ibm.com>
Proposed new API for ICU 3.0 in Locale (locid.h):

    /**
     * Creates a locale from the given string after canonicalizing
     * the string by calling uloc_canonicalize().
     * @param name the locale ID to create from.  Must not be NULL.
     * @return a new locale object corresponding to the given name
     * @draft ICU 3.0
     * @see uloc_canonicalize
     */
    static Locale createCanonical(const char* name);

Please reply to this list with comments.

[Alan S Liu/San Jose/IBM@IBMUS; [email protected];; IBM Globalization; 
5600 Cottle Road; San Jose, CA 95193;; (408) 256-3155]