Lines Matching refs:fmt
137 function ut_nfmt_format( $fmt, $number, $type = null )
139 …return $GLOBALS['oo-mode'] ? $fmt->format( $number, $type ) : numfmt_format( $fmt, $number, $type …
141 function ut_nfmt_parse( $fmt, $string, $type = NumberFormatter::TYPE_DOUBLE, &$position = null )
144 … return $GLOBALS['oo-mode'] ? $fmt->parse( $string, $type ) : numfmt_parse( $fmt, $string, $type );
146 …return $GLOBALS['oo-mode'] ? $fmt->parse( $string, $type, $position ) : numfmt_parse( $fmt, $strin…
149 function ut_nfmt_format_currency( $fmt, $number, $currency )
151 …return $GLOBALS['oo-mode'] ? $fmt->formatCurrency( $number, $currency ) : numfmt_format_currency( …
153 function ut_nfmt_parse_currency( $fmt, $string, &$currency, &$position = null )
156 …return $GLOBALS['oo-mode'] ? $fmt->parseCurrency( $string, $currency ) : numfmt_parse_currency( $f…
158 …return $GLOBALS['oo-mode'] ? $fmt->parseCurrency( $string, $currency, $position ) : numfmt_parse_c…
161 function ut_nfmt_set_attribute( $fmt, $attribute, $value )
163 …return $GLOBALS['oo-mode'] ? $fmt->setAttribute( $attribute, $value ) : numfmt_set_attribute( $fmt…
165 function ut_nfmt_set_text_attribute( $fmt, $attribute, $value )
167 …return $GLOBALS['oo-mode'] ? $fmt->setTextAttribute( $attribute, $value ) : numfmt_set_text_attrib…
169 function ut_nfmt_set_symbol( $fmt, $attribute, $value )
171 …return $GLOBALS['oo-mode'] ? $fmt->setSymbol( $attribute, $value ) : numfmt_set_symbol( $fmt, $att…
173 function ut_nfmt_set_pattern( $fmt, $pattern )
175 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : numfmt_set_pattern( $fmt, $pattern );
177 function ut_nfmt_get_attribute( $fmt, $attribute )
179 …return $GLOBALS['oo-mode'] ? $fmt->getAttribute( $attribute ) : numfmt_get_attribute( $fmt, $attri…
181 function ut_nfmt_get_text_attribute( $fmt, $attribute )
183 …return $GLOBALS['oo-mode'] ? $fmt->getTextAttribute( $attribute ) : numfmt_get_text_attribute( $fm…
185 function ut_nfmt_get_symbol( $fmt, $attribute )
187 …return $GLOBALS['oo-mode'] ? $fmt->getSymbol( $attribute ) : numfmt_get_symbol( $fmt, $attribute );
189 function ut_nfmt_get_pattern( $fmt )
191 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : numfmt_get_pattern( $fmt );
193 function ut_nfmt_get_locale( $fmt, $type = 0 )
195 return $GLOBALS['oo-mode'] ? $fmt->getLocale( $type ) : numfmt_get_locale( $fmt, $type );
197 function ut_nfmt_get_error_code( $fmt )
199 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : numfmt_get_error_code( $fmt );
201 function ut_nfmt_get_error_message( $fmt )
203 return $GLOBALS['oo-mode'] ? $fmt->getErrorMessage() : numfmt_get_error_message( $fmt );
295 function ut_msgfmt_format( $fmt, $args )
297 return $GLOBALS['oo-mode'] ? $fmt->format( $args ) : msgfmt_format( $fmt, $args);
299 function ut_msgfmt_parse( $fmt, $string)
301 return $GLOBALS['oo-mode'] ? $fmt->parse( $string) : msgfmt_parse( $fmt, $string);
311 function ut_msgfmt_set_pattern( $fmt, $pattern )
313 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : msgfmt_set_pattern( $fmt, $pattern );
315 function ut_msgfmt_get_pattern( $fmt )
317 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : msgfmt_get_pattern( $fmt );
319 function ut_msgfmt_get_locale( $fmt )
321 return $GLOBALS['oo-mode'] ? $fmt->getLocale( ) : msgfmt_get_locale( $fmt );
323 function ut_msgfmt_get_error_code( $fmt )
325 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : msgfmt_get_error_code( $fmt );
327 function ut_msgfmt_get_error_message( $fmt )
329 return $GLOBALS['oo-mode'] ? $fmt->getErrorMessage() : msgfmt_get_error_message( $fmt );
336 function ut_datefmt_get_datetype( $fmt )
338 return $GLOBALS['oo-mode'] ? $fmt->getDateType( ) : datefmt_get_datetype( $fmt );
340 function ut_datefmt_get_timetype( $fmt )
342 return $GLOBALS['oo-mode'] ? $fmt->getTimeType( ) : datefmt_get_timetype( $fmt );
344 function ut_datefmt_get_calendar( $fmt )
346 return $GLOBALS['oo-mode'] ? $fmt->getCalendar( ) : datefmt_get_calendar( $fmt );
348 function ut_datefmt_set_calendar( $fmt ,$calendar )
350 …return $GLOBALS['oo-mode'] ? $fmt->setCalendar( $calendar ) : datefmt_set_calendar( $fmt , $calend…
352 function ut_datefmt_get_timezone_id( $fmt )
354 return $GLOBALS['oo-mode'] ? $fmt->getTimeZoneId( ) : datefmt_get_timezone_id( $fmt );
356 function ut_datefmt_set_timezone_id( $fmt ,$timezone_id )
358 …return $GLOBALS['oo-mode'] ? $fmt->setTimeZoneId( $timezone_id ) : datefmt_set_timezone_id( $fmt ,…
360 function ut_datefmt_get_pattern( $fmt )
362 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : datefmt_get_pattern( $fmt );
364 function ut_datefmt_set_pattern( $fmt , $pattern )
366 …return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : datefmt_set_pattern( $fmt , $pattern);
368 function ut_datefmt_get_locale( $fmt ,$type=ULOC_ACTUAL_LOCALE)
370 return $GLOBALS['oo-mode'] ? $fmt->getLocale($type ) : datefmt_get_locale( $fmt ,$type);
372 function ut_datefmt_is_lenient( $fmt )
374 return $GLOBALS['oo-mode'] ? $fmt->isLenient() : datefmt_is_lenient( $fmt );
376 function ut_datefmt_set_lenient( $fmt , $lenient )
378 …return $GLOBALS['oo-mode'] ? $fmt->setLenient( $lenient ) : datefmt_set_lenient( $fmt , $lenient…
380 function ut_datefmt_format( $fmt , $value )
382 return $GLOBALS['oo-mode'] ? $fmt->format( $value ) : datefmt_format( $fmt , $value);
384 function ut_datefmt_parse( $fmt , $value , &$parse_pos=0 )
386 …return $GLOBALS['oo-mode'] ? $fmt->parse( $value ,$parse_pos ) : datefmt_parse( $fmt , $value,$p…
388 function ut_datefmt_localtime( $fmt , $value , &$parse_pos=0 )
390 …return $GLOBALS['oo-mode'] ? $fmt->localtime( $value , $parse_pos ) : datefmt_localtime( $fmt , …