diff options
| author | Stanislav Malyshev <stas@php.net> | 2009-10-26 22:35:48 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2009-10-26 22:35:48 +0000 |
| commit | 65c1421f3fcde57d33a4224e5e6c06aa7bf77f87 (patch) | |
| tree | d91eb5001ee0ed0a5d068c720a6c9ffc800ca8da /ext/intl/tests | |
| parent | 8b2735632ea432de903a39e15dc17dcce122263f (diff) | |
| download | php-git-65c1421f3fcde57d33a4224e5e6c06aa7bf77f87.tar.gz | |
add collator_get_sort_key()
Diffstat (limited to 'ext/intl/tests')
| -rwxr-xr-x | ext/intl/tests/ut_common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/intl/tests/ut_common.inc b/ext/intl/tests/ut_common.inc index 4f2036123d..c59d1770ee 100755 --- a/ext/intl/tests/ut_common.inc +++ b/ext/intl/tests/ut_common.inc @@ -59,6 +59,10 @@ function ut_coll_sort_with_sort_keys( $coll, &$arr ) { return $GLOBALS['oo-mode'] ? $coll->sortWithSortKeys( $arr ) : collator_sort_with_sort_keys( $coll, $arr ); } +function ut_coll_get_sort_key( $coll, $str ) +{ + return $GLOBALS['oo-mode'] ? $coll->getSortKey( $str ) : collator_get_sort_key( $coll, $str ); +} function ut_coll_asort( $coll, &$arr, $sort_flag = Collator::SORT_REGULAR ) { return $GLOBALS['oo-mode'] ? $coll->asort( $arr, $sort_flag ) : collator_asort( $coll, $arr, $sort_flag ); |
