Lines Matching refs:fmt
91 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vformatMessage() local
92 int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status); in u_vformatMessage()
93 umsg_close(fmt); in u_vformatMessage()
132 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,parseError,status); in u_vformatMessageWithError() local
133 int32_t retVal = umsg_vformat(fmt,result,resultLength,ap,status); in u_vformatMessageWithError()
134 umsg_close(fmt); in u_vformatMessageWithError()
173 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,NULL,status); in u_vparseMessage() local
175 umsg_vparse(fmt,source,sourceLength,&count,ap,status); in u_vparseMessage()
176 umsg_close(fmt); in u_vparseMessage()
211 UMessageFormat *fmt = umsg_open(pattern,patternLength,locale,error,status); in u_vparseMessageWithError() local
213 umsg_vparse(fmt,source,sourceLength,&count,ap,status); in u_vparseMessageWithError()
214 umsg_close(fmt); in u_vparseMessageWithError()
271 umsg_clone(const UMessageFormat *fmt, in umsg_clone() argument
278 if(fmt==NULL){ in umsg_clone()
282 UMessageFormat retVal = (UMessageFormat)((MessageFormat*)fmt)->clone(); in umsg_clone()
291 umsg_setLocale(UMessageFormat *fmt, const char* locale) in umsg_setLocale() argument
294 if(fmt==NULL){ in umsg_setLocale()
297 ((MessageFormat*)fmt)->setLocale(Locale(locale)); in umsg_setLocale()
301 umsg_getLocale(const UMessageFormat *fmt) in umsg_getLocale() argument
304 if(fmt==NULL){ in umsg_getLocale()
307 return ((const MessageFormat*)fmt)->getLocale().getName(); in umsg_getLocale()
311 umsg_applyPattern(UMessageFormat *fmt, in umsg_applyPattern() argument
322 if(fmt==NULL||pattern==NULL||patternLength<-1){ in umsg_applyPattern()
334 ((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status); in umsg_applyPattern()
338 umsg_toPattern(const UMessageFormat *fmt, in umsg_toPattern() argument
347 if(fmt==NULL||resultLength<0 || (resultLength>0 && result==0)){ in umsg_toPattern()
359 ((const MessageFormat*)fmt)->toPattern(res); in umsg_toPattern()
364 umsg_format( const UMessageFormat *fmt, in umsg_format() argument
380 actLen = umsg_vformat(fmt,result,resultLength,ap,status); in umsg_format()
389 umsg_vformat( const UMessageFormat *fmt, in umsg_vformat() argument
400 if(fmt==NULL||resultLength<0 || (resultLength>0 && result==0)) { in umsg_vformat()
407 MessageFormatAdapter::getArgTypeList(*(const MessageFormat*)fmt, count); in umsg_vformat()
474 ((const MessageFormat*)fmt)->format(args,count,resultStr,fieldPosition,*status); in umsg_vformat()
486 umsg_parse( const UMessageFormat *fmt, in umsg_parse() argument
501 umsg_vparse(fmt,source,sourceLength,count,ap,status); in umsg_parse()
508 umsg_vparse(const UMessageFormat *fmt, in umsg_vparse() argument
520 if(fmt==NULL||source==NULL || sourceLength<-1 || count==NULL){ in umsg_vparse()
529 Formattable *args = ((const MessageFormat*)fmt)->parse(source,*count,*status); in umsg_vparse()