From cb402d76c0801655689315e490e5caf75bcdfd53 Mon Sep 17 00:00:00 2001 From: Oguz Ulgen Date: Tue, 1 Mar 2022 15:45:23 -0800 Subject: [PATCH] Remove rx from HSL Summary: Rx is dead. Reviewed By: fredemmott Differential Revision: D34555209 fbshipit-source-id: 71d6782b84bdec93f35b25838f42c6ba40a91d19 --- src/math/compute.php | 4 ++-- src/str/transform.php | 8 ++++---- src/str/transform_l.php | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/math/compute.php b/src/math/compute.php index 53598f42..780efbc0 100644 --- a/src/math/compute.php +++ b/src/math/compute.php @@ -35,7 +35,7 @@ function abs(T $number)[]: T { * - To convert a string in some base to an int, see `Math\from_base()`. * - To convert an int to a string in some base, see `Math\to_base()`. */ -function base_convert(string $value, int $from_base, int $to_base)[rx_local]: string { +function base_convert(string $value, int $from_base, int $to_base): string { invariant( $value !== '', 'Unexpected empty string, expected number in base %d', @@ -254,7 +254,7 @@ function tan(num $arg)[]: float { * * To base convert a string to an int, see `Math\from_base()`. */ -function to_base(int $number, int $to_base)[rx_shallow]: string { +function to_base(int $number, int $to_base): string { invariant( $to_base >= 2 && $to_base <= 36, 'Expected $to_base to be between 2 and 36, got %d', diff --git a/src/str/transform.php b/src/str/transform.php index abc1d6ce..4d1207d4 100644 --- a/src/str/transform.php +++ b/src/str/transform.php @@ -182,7 +182,7 @@ function replace_ci( string $haystack, string $needle, string $replacement, -)[rx]: string { +): string { return _Str\replace_ci_l($haystack, $needle, $replacement); } @@ -230,7 +230,7 @@ function replace_every( function replace_every_ci( string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_ci_l($haystack, dict($replacements)); } @@ -249,7 +249,7 @@ function replace_every_ci( function replace_every_nonrecursive( string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_nonrecursive_l($haystack, dict($replacements)); } @@ -275,7 +275,7 @@ function replace_every_nonrecursive( function replace_every_nonrecursive_ci( string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_nonrecursive_ci_l($haystack, dict($replacements)); } diff --git a/src/str/transform_l.php b/src/str/transform_l.php index a3b08d34..77aa36be 100644 --- a/src/str/transform_l.php +++ b/src/str/transform_l.php @@ -143,7 +143,7 @@ function replace_ci_l( string $haystack, string $needle, string $replacement, -)[rx]: string { +): string { return _Str\replace_ci_l($haystack, $needle, $replacement, $locale); } @@ -201,7 +201,7 @@ function replace_every_ci_l( Locale\Locale $locale, string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_ci_l($haystack, dict($replacements), $locale); } @@ -224,7 +224,7 @@ function replace_every_nonrecursive_l( Locale\Locale $locale, string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_nonrecursive_l($haystack, dict($replacements), $locale); } @@ -256,7 +256,7 @@ function replace_every_nonrecursive_ci_l( Locale\Locale $locale, string $haystack, KeyedContainer $replacements, -)[rx]: string { +): string { return _Str\replace_every_nonrecursive_ci_l($haystack, dict($replacements), $locale); }