Lines Matching refs:fmt

145 function ut_nfmt_format( $fmt, $number, $type = NumberFormatter::TYPE_DEFAULT )
147 …return $GLOBALS['oo-mode'] ? $fmt->format( $number, $type ) : numfmt_format( $fmt, $number, $type …
149 function ut_nfmt_parse( $fmt, $string, $type = NumberFormatter::TYPE_DOUBLE, &$position = null )
152 … return $GLOBALS['oo-mode'] ? $fmt->parse( $string, $type ) : numfmt_parse( $fmt, $string, $type );
154 …return $GLOBALS['oo-mode'] ? $fmt->parse( $string, $type, $position ) : numfmt_parse( $fmt, $strin…
157 function ut_nfmt_format_currency( $fmt, $number, $currency )
159 …return $GLOBALS['oo-mode'] ? $fmt->formatCurrency( $number, $currency ) : numfmt_format_currency( …
161 function ut_nfmt_parse_currency( $fmt, $string, &$currency, &$position = null )
164 …return $GLOBALS['oo-mode'] ? $fmt->parseCurrency( $string, $currency ) : numfmt_parse_currency( $f…
166 …return $GLOBALS['oo-mode'] ? $fmt->parseCurrency( $string, $currency, $position ) : numfmt_parse_c…
169 function ut_nfmt_set_attribute( $fmt, $attribute, $value )
171 …return $GLOBALS['oo-mode'] ? $fmt->setAttribute( $attribute, $value ) : numfmt_set_attribute( $fmt
173 function ut_nfmt_set_text_attribute( $fmt, $attribute, $value )
175 …return $GLOBALS['oo-mode'] ? $fmt->setTextAttribute( $attribute, $value ) : numfmt_set_text_attrib…
177 function ut_nfmt_set_symbol( $fmt, $attribute, $value )
179 …return $GLOBALS['oo-mode'] ? $fmt->setSymbol( $attribute, $value ) : numfmt_set_symbol( $fmt, $att…
181 function ut_nfmt_set_pattern( $fmt, $pattern )
183 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : numfmt_set_pattern( $fmt, $pattern );
185 function ut_nfmt_get_attribute( $fmt, $attribute )
187 …return $GLOBALS['oo-mode'] ? $fmt->getAttribute( $attribute ) : numfmt_get_attribute( $fmt, $attri…
189 function ut_nfmt_get_text_attribute( $fmt, $attribute )
191 …return $GLOBALS['oo-mode'] ? $fmt->getTextAttribute( $attribute ) : numfmt_get_text_attribute( $fm…
193 function ut_nfmt_get_symbol( $fmt, $attribute )
195 …return $GLOBALS['oo-mode'] ? $fmt->getSymbol( $attribute ) : numfmt_get_symbol( $fmt, $attribute );
197 function ut_nfmt_get_pattern( $fmt )
199 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : numfmt_get_pattern( $fmt );
201 function ut_nfmt_get_locale( $fmt, $type = 0 )
203 return $GLOBALS['oo-mode'] ? $fmt->getLocale( $type ) : numfmt_get_locale( $fmt, $type );
205 function ut_nfmt_get_error_code( $fmt )
207 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : numfmt_get_error_code( $fmt );
209 function ut_nfmt_get_error_message( $fmt )
211 return $GLOBALS['oo-mode'] ? $fmt->getErrorMessage() : numfmt_get_error_message( $fmt );
307 function ut_msgfmt_format( $fmt, $args )
309 return $GLOBALS['oo-mode'] ? $fmt->format( $args ) : msgfmt_format( $fmt, $args);
311 function ut_msgfmt_parse( $fmt, $string)
313 return $GLOBALS['oo-mode'] ? $fmt->parse( $string) : msgfmt_parse( $fmt, $string);
323 function ut_msgfmt_set_pattern( $fmt, $pattern )
325 … return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : msgfmt_set_pattern( $fmt, $pattern );
327 function ut_msgfmt_get_pattern( $fmt )
329 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : msgfmt_get_pattern( $fmt );
331 function ut_msgfmt_get_locale( $fmt )
333 return $GLOBALS['oo-mode'] ? $fmt->getLocale( ) : msgfmt_get_locale( $fmt );
335 function ut_msgfmt_get_error_code( $fmt )
337 return $GLOBALS['oo-mode'] ? $fmt->getErrorCode() : msgfmt_get_error_code( $fmt );
339 function ut_msgfmt_get_error_message( $fmt )
341 return $GLOBALS['oo-mode'] ? $fmt->getErrorMessage() : msgfmt_get_error_message( $fmt );
348 function ut_datefmt_get_datetype( $fmt )
350 return $GLOBALS['oo-mode'] ? $fmt->getDateType( ) : datefmt_get_datetype( $fmt );
352 function ut_datefmt_get_timetype( $fmt )
354 return $GLOBALS['oo-mode'] ? $fmt->getTimeType( ) : datefmt_get_timetype( $fmt );
356 function ut_datefmt_get_calendar( $fmt )
358 return $GLOBALS['oo-mode'] ? $fmt->getCalendar( ) : datefmt_get_calendar( $fmt );
360 function ut_datefmt_set_calendar( $fmt ,$calendar )
362 …return $GLOBALS['oo-mode'] ? $fmt->setCalendar( $calendar ) : datefmt_set_calendar( $fmt , $calend…
364 function ut_datefmt_get_timezone_id( $fmt )
366 return $GLOBALS['oo-mode'] ? $fmt->getTimeZoneId( ) : datefmt_get_timezone_id( $fmt );
368 function ut_datefmt_set_timezone_id( $fmt ,$timezone_id )
370 …return $GLOBALS['oo-mode'] ? $fmt->setTimeZone( $timezone_id ) : datefmt_set_timezone( $fmt ,$time…
372 function ut_datefmt_get_pattern( $fmt )
374 return $GLOBALS['oo-mode'] ? $fmt->getPattern() : datefmt_get_pattern( $fmt );
376 function ut_datefmt_set_pattern( $fmt , $pattern )
378 …return $GLOBALS['oo-mode'] ? $fmt->setPattern( $pattern ) : datefmt_set_pattern( $fmt , $pattern);
380 function ut_datefmt_get_locale( $fmt ,$type=ULOC_ACTUAL_LOCALE)
382 return $GLOBALS['oo-mode'] ? $fmt->getLocale($type ) : datefmt_get_locale( $fmt ,$type);
384 function ut_datefmt_is_lenient( $fmt )
386 return $GLOBALS['oo-mode'] ? $fmt->isLenient() : datefmt_is_lenient( $fmt );
388 function ut_datefmt_set_lenient( $fmt , $lenient )
390 …return $GLOBALS['oo-mode'] ? $fmt->setLenient( $lenient ) : datefmt_set_lenient( $fmt , $lenient…
392 function ut_datefmt_format( $fmt , $value )
394 return $GLOBALS['oo-mode'] ? $fmt->format( $value ) : datefmt_format( $fmt , $value);
396 function ut_datefmt_parse( $fmt , $value , &$parse_pos=0 )
398 …return $GLOBALS['oo-mode'] ? $fmt->parse( $value ,$parse_pos ) : datefmt_parse( $fmt , $value,$p…
400 function ut_datefmt_localtime( $fmt , $value , &$parse_pos=0 )
402 …return $GLOBALS['oo-mode'] ? $fmt->localtime( $value , $parse_pos ) : datefmt_localtime( $fmt , …