From: Markus S. <mar...@gm...> - 2010-06-09 17:57:00
|
Dear ICU team & users, It looks like I did not formally propose what we had discussed, so I would like to now propose that we add the C++ API DecimalFormatSymbols::createWithLastResortData(UErrorCode) as in the attached email below. Ticket: http://bugs.icu-project.org/trac/ticket/7392 <http://bugs.icu-project.org/trac/ticket/7392>Designated API reviewer: Yoshito Please provide feedback by next Wednesday, jun16. Sincerely, markus On Wed, Feb 3, 2010 at 1:58 PM, Markus Scherer <mar...@gm...> wrote: > This is what we arrived at in today's ICU meeting: > > Add createWithLastResortData(UErrorCode) which creates a symbols object > with "last resort data". Internally, it would call the existing initialize() > function. > > We would document the symbols values and say in the API doc that the user > should set all symbols. > > Here are the "last resort symbols" set by initialize(), which are currently > used when the normal construction fails: > > void > DecimalFormatSymbols::initialize() { > fSymbols[kDecimalSeparatorSymbol] = (UChar)0x2e; // '.' decimal > separator > fSymbols[kGroupingSeparatorSymbol].remove(); // group > (thousands) separator > fSymbols[kPatternSeparatorSymbol] = (UChar)0x3b; // ';' pattern > separator > fSymbols[kPercentSymbol] = (UChar)0x25; // '%' percent sign > fSymbols[kZeroDigitSymbol] = (UChar)0x30; // '0' native 0 > digit > fSymbols[kDigitSymbol] = (UChar)0x23; // '#' pattern > digit > fSymbols[kPlusSignSymbol] = (UChar)0x002b; // '+' plus sign > fSymbols[kMinusSignSymbol] = (UChar)0x2d; // '-' minus sign > fSymbols[kCurrencySymbol] = (UChar)0xa4; // 'OX' currency > symbol > fSymbols[kIntlCurrencySymbol] = INTL_CURRENCY_SYMBOL_STR; // = U+00A4 > U+00A4 > fSymbols[kMonetarySeparatorSymbol] = (UChar)0x2e; // '.' monetary > decimal separator > fSymbols[kExponentialSymbol] = (UChar)0x45; // 'E' exponential > fSymbols[kPerMillSymbol] = (UChar)0x2030; // '%o' per mill > fSymbols[kPadEscapeSymbol] = (UChar)0x2a; // '*' pad escape > symbol > fSymbols[kInfinitySymbol] = (UChar)0x221e; // 'oo' infinite > fSymbols[kNaNSymbol] = (UChar)0xfffd; // SUB NaN > fSymbols[kSignificantDigitSymbol] = (UChar)0x0040; // '@' significant > digit > } > > markus > |