Re: Proposal: Add UErrorCode to ucurr_get* (JB#3399)
Deborah Goldsmith <[email protected]> Tue, 23 Mar 2004 16:15:21 -0800
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
Are deprecated APIs kept forever? Otherwise, you'll break binary compatibility at some point, on systems where ICU ships as a shared library (such as Mac OS X). Deborah Goldsmith Manager, Fonts / Unicode liaison Apple Computer, Inc. [email protected] On Mar 23, 2004, at 1:09 PM, Alan S Liu wrote: > Affects: ICU4C 3.0 > > Bug: #3399 > http://www.jtcsv.com/cgibin/icu-bugs?findid=3399 > > NumberFormat: > ------------ > The following @stable API: > > void setCurrency(const UChar* theCurrency); > > will be marked @deprecated as of 3.0 in favor of the new API: > > void setCurrency(const UChar* theCurrency, UErrorCode& ec); > > These will be inherited by DecimalFormat. > > > ucurr.h: > ------- > The following @draft API > > int32_t ucurr_getDefaultFractionDigits(const UChar* currency); > > double ucurr_getRoundingIncrement(const UChar* currency);); > > will gain a UErrorCode* parameter and become: > > int32_t ucurr_getDefaultFractionDigits(const UChar* currency, > UErrorCode* ec); > > double ucurr_getRoundingIncrement(const UChar* currency); > UErrorCode* ec); > > [Alan S Liu/San Jose/IBM@IBMUS; [email protected];; IBM Globalization; > 5600 Cottle Road; San Jose, CA 95193;; (408) 256-3155] > _______________________________________________ > icu mailing list > [email protected] > http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu