Implement Intl's DateFormatter class
commitba8b4bf75a1a2461f3f00a4c048aacdb6835accb
authorSara Golemon <sgolemon@fb.com>
Sun, 12 Jan 2014 02:09:23 +0000 (11 18:09 -0800)
committerSara Golemon <sgolemon@fb.com>
Sun, 12 Jan 2014 02:11:05 +0000 (11 18:11 -0800)
treee0a1c43779002dc97f1f6d9b1d91181ce4c012ee
parent2abbadcec10c6ad603c7e5b7f24289ef3f139d86
Implement Intl's DateFormatter class

This is actually a partial implementation because DateFormatter
is tightly bound to IntlCalendar (and its children).
Rather than make a massive hard-to-review diff,
I've implemented most of the DateFormater bits here
and will finish them off with a followup IntlCalendar diff.

Reviewed By: @ptarjan

Differential Revision: D1119360
30 files changed:
hphp/runtime/ext/icu/ext_icu_calendar.cpp [new file with mode: 0644]
hphp/runtime/ext/icu/ext_icu_calendar.h [new file with mode: 0644]
hphp/runtime/ext/icu/ext_icu_date_fmt.cpp [new file with mode: 0644]
hphp/runtime/ext/icu/ext_icu_date_fmt.h [new file with mode: 0644]
hphp/runtime/ext/icu/ext_icu_date_fmt.php [new file with mode: 0644]
hphp/runtime/ext/icu/ext_icu_timezone.cpp
hphp/runtime/ext/icu/ext_icu_timezone.h
hphp/runtime/ext/icu/ext_icu_timezone.php
hphp/runtime/ext/icu/icu.cpp
hphp/runtime/ext/icu/icu.h
hphp/test/zend/good/ext/intl/tests/dateformat_clone2.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_clone2.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_clone2.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_clone2.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_clone_bad_obj.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_clone_bad_obj.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_clone_bad_obj.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_clone_bad_obj.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_format_parse.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_format_parse.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_format_parse.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_format_parse.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_datetype.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_datetype.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_datetype.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_datetype.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_locale.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_locale.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_locale.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_locale.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_set_pattern2.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_set_pattern2.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_set_pattern2.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_set_pattern2.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_set_timezone.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_set_timezone.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_set_timezone.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_set_timezone.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_timetype.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_timetype.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_timetype.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_timetype.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_timezone_id.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_timezone_id.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_get_timezone_id.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_get_timezone_id.php.expectf with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_is_set_lenient.php [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_is_set_lenient.php with 100% similarity]
hphp/test/zend/good/ext/intl/tests/dateformat_is_set_lenient.php.expectf [moved from hphp/test/zend/bad/ext/intl/tests/dateformat_is_set_lenient.php.expectf with 100% similarity]