|
From: Shane C. <sf...@go...> - 2018-02-09 22:39:17
|
Dear ICU team & users, Based on feedback, the proposed name of the new error code has been changed to "U_NUMBER_ARG_OUTOFBOUNDS_ERROR". All other aspects of the API proposal remain the same. Please provide feedback by 2018-02-13. -Shane On Wed, Feb 7, 2018 at 12:19 AM, Shane Carr <sf...@go...> wrote: > > > > > > *Dear ICU team & users,I would like to propose the following API for: ICU > 61Please provide feedback by: 2/13/2018Designated API reviewer: AndyTicket: > http://bugs.icu-project.org/trac/ticket/13577 > <http://bugs.icu-project.org/trac/ticket/13577>In ICU4C, NumberFormatter > currently sets U_ILLEGAL_ARGUMENT_ERROR when the user attempts to specify > an invalid value for one of the arguments to a helper function; for > example, something like Rounder::fixedFraction(-100). I propose adding a > new error code to UErrorCode in utypes.h for this > case:U_DIGIT_WIDTH_OUTOFBOUNDS_ERROR, /**< The argument to a > NumberFormatter helper method was out of bounds; the bounds are usually 0 > to 999. @draft ICU 61 */I will propose adding more UErrorCode values for > NumberFormatter as needed.Thanks, Shane* > > |