Lines Matching full:bundle
105 u_locbund_clone(const ULocaleBundle *bundle)
114 result->fLocale = (char*) uprv_malloc(strlen(bundle->fLocale) + 1);
120 strcpy(result->fLocale, bundle->fLocale );
125 result->fNumberFormat[styleIdx] = unum_clone(bundle->fNumberFormat[styleIdx], &status);
134 result->fDateFormat = (bundle->fDateFormat == 0 ? 0 :
135 udat_clone(bundle->fDateFormat, &status));
136 result->fTimeFormat = (bundle->fTimeFormat == 0 ? 0 :
137 udat_clone(bundle->fTimeFormat, &status));
143 u_locbund_close(ULocaleBundle *bundle) in u_locbund_close() argument
147 uprv_free(bundle->fLocale); in u_locbund_close()
150 if (bundle->fNumberFormat[styleIdx]) { in u_locbund_close()
151 unum_close(bundle->fNumberFormat[styleIdx]); in u_locbund_close()
155 uprv_memset(bundle, 0, sizeof(ULocaleBundle)); in u_locbund_close()
156 /* uprv_free(bundle);*/ in u_locbund_close()
160 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style) in u_locbund_getNumberFormat() argument
164 formatAlias = bundle->fNumberFormat[style-1]; in u_locbund_getNumberFormat()
166 if (bundle->isInvariantLocale) { in u_locbund_getNumberFormat()
167 formatAlias = copyInvariantFormatter(bundle, style); in u_locbund_getNumberFormat()
171 formatAlias = unum_open(style, NULL, 0, bundle->fLocale, NULL, &status); in u_locbund_getNumberFormat()
177 bundle->fNumberFormat[style-1] = formatAlias; in u_locbund_getNumberFormat()