Home | History | Annotate | Download | only in io

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)
147 uprv_free(bundle->fLocale);
150 if (bundle->fNumberFormat[styleIdx]) {
151 unum_close(bundle->fNumberFormat[styleIdx]);
155 uprv_memset(bundle, 0, sizeof(ULocaleBundle));
156 /* uprv_free(bundle);*/
160 u_locbund_getNumberFormat(ULocaleBundle *bundle, UNumberFormatStyle style)
164 formatAlias = bundle->fNumberFormat[style-1];
166 if (bundle->isInvariantLocale) {
167 formatAlias = copyInvariantFormatter(bundle, style);
171 formatAlias = unum_open(style, NULL, 0, bundle->fLocale, NULL, &status);
177 bundle->fNumberFormat[style-1] = formatAlias;