Lines Matching full:style
37 int32_t style;
38 for (style = 0; style < ULOCALEBUNDLE_NUMBERFORMAT_COUNT; style++) {
39 unum_close(gPosixNumberFormat[style]);
40 gPosixNumberFormat[style] = NULL;
48 static U_INLINE UNumberFormat * copyInvariantFormatter(ULocaleBundle *result, UNumberFormatStyle style) {
49 if (result->fNumberFormat[style-1] == NULL) {
53 UMTX_CHECK(NULL, gPosixNumberFormat[style-1] == NULL, needsInit);
55 UNumberFormat *formatAlias = unum_open(style, NULL, 0, "en_US_POSIX", NULL, &status);
60 gPosixNumberFormat[style-1] = formatAlias;
67 result->fNumberFormat[style-1] = unum_clone(gPosixNumberFormat[style-1], &status);
69 return result->fNumberFormat[style-1];
162 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style)
165 if (style > UNUM_IGNORE) {
166 formatAlias = bundle->fNumberFormat[style-1];
169 formatAlias = copyInvariantFormatter(bundle, style);
173 formatAlias = unum_open(style, NULL, 0, bundle->fLocale, NULL, &status);
179 bundle->fNumberFormat[style-1] = formatAlias;