Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/intl/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/intl/tests/formatter_get_locale.phpt |
--TEST-- numfmt_get_locale() icu >= 4.8 && icu < 50.1.2 --SKIPIF-- <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?> <?php if (version_compare(INTL_ICU_VERSION, '50.1.2') >= 0) die('skip for ICU < 50.1.2'); ?> --FILE-- <?php /* * Get locale. */ function ut_main() { $locales = array( 'en_UK', 'en_US@California', 'fr_CA', ); $loc_types = array( Locale::ACTUAL_LOCALE => 'actual', Locale::VALID_LOCALE => 'valid', ); $res_str = ''; foreach( $locales as $locale ) { $fmt = ut_nfmt_create( $locale, NumberFormatter::DECIMAL ); $res_str .= "$locale: "; foreach( $loc_types as $loc_type => $loc_type_name ) $res_str .= sprintf( " %s=%s", $loc_type_name, dump( ut_nfmt_get_locale( $fmt, $loc_type ) ) ); $res_str .= "\n"; } return $res_str; } include_once( 'ut_common.inc' ); // Run the test ut_run(); ?> --EXPECT-- en_UK: actual='en' valid='en' en_US@California: actual='en' valid='en' fr_CA: actual='fr_CA' valid='fr_CA'
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare