Lines Matching full:style
36 int32_t style;
37 for (style = 0; style < ULOCALEBUNDLE_NUMBERFORMAT_COUNT; style++) {
38 unum_close(gPosixNumberFormat[style]);
39 gPosixNumberFormat[style] = NULL;
46 static inline UNumberFormat * copyInvariantFormatter(ULocaleBundle *result, UNumberFormatStyle style) {
47 if (result->fNumberFormat[style-1] == NULL) {
51 UMTX_CHECK(NULL, gPosixNumberFormat[style-1] == NULL, needsInit);
53 UNumberFormat *formatAlias = unum_open(style, NULL, 0, "en_US_POSIX", NULL, &status);
58 gPosixNumberFormat[style-1] = formatAlias;
65 result->fNumberFormat[style-1] = unum_clone(gPosixNumberFormat[style-1], &status);
67 return result->fNumberFormat[style-1];
160 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style)
163 if (style > UNUM_IGNORE) {
164 formatAlias = bundle->fNumberFormat[style-1];
167 formatAlias = copyInvariantFormatter(bundle, style);
171 formatAlias = unum_open(style, NULL, 0, bundle->fLocale, NULL, &status);
177 bundle->fNumberFormat[style-1] = formatAlias;