Re: Proposal: Add UErrorCode to ucurr_get* (JB#3399)
Vladimir Weinstein <[email protected]> Tue, 23 Mar 2004 16:20:55 -0800
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
Deborah, we have two classes of APIs as far as deprecation goes. @deprecated APIs are kept around forever. However, users are advised to use alternative APIs. @obsolete APIs are the APIs that are harmful in some way. These APIs get removed after a certain period of time - minimum is 1 year. We are trying very hard not to have any @obsolete APIs. Hope this helps! Regards, v. Deborah Goldsmith wrote: > 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 > > > _______________________________________________ > icu mailing list > [email protected] > http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu > -- Vladimir Weinstein, IBM GCoC-Unicode/ICU San Jose, CA [email protected]