From dabe44db1ab492e58b91e17afe0afdba8de0128c Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 13 Nov 2024 14:53:08 -0800 Subject: [PATCH] rename --- components/decimal/src/provider.rs | 4 ++-- ffi/capi/src/decimal.rs | 4 ++-- provider/source/src/decimal/symbols.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/decimal/src/provider.rs b/components/decimal/src/provider.rs index 04353458b51..1d88e8458e8 100644 --- a/components/decimal/src/provider.rs +++ b/components/decimal/src/provider.rs @@ -90,7 +90,7 @@ pub struct GroupingSizesV1 { #[zerovec::skip_derive(Ord)] #[cfg_attr(feature = "serde", zerovec::derive(Deserialize))] #[cfg_attr(feature = "datagen", zerovec::derive(Serialize))] -pub struct DecimalSymbolsV2StrsBuilder<'data> { +pub struct DecimalSymbolStrsBuilder<'data> { /// Prefix to apply when a negative sign is needed. #[cfg_attr(feature = "serde", serde(borrow))] pub minus_sign_prefix: Cow<'data, str>, @@ -170,7 +170,7 @@ impl DecimalSymbolsV2<'static> { #[cfg(test)] /// Create a new en-US format for use in testing pub(crate) fn new_en_for_testing() -> Self { - let strings = DecimalSymbolsV2StrsBuilder { + let strings = DecimalSymbolStrsBuilder { minus_sign_prefix: Cow::Borrowed("-"), minus_sign_suffix: Cow::Borrowed(""), plus_sign_prefix: Cow::Borrowed("+"), diff --git a/ffi/capi/src/decimal.rs b/ffi/capi/src/decimal.rs index 9afceaeced6..aa05031dd4b 100644 --- a/ffi/capi/src/decimal.rs +++ b/ffi/capi/src/decimal.rs @@ -85,7 +85,7 @@ pub mod ffi { } use icu_decimal::provider::{ - DecimalSymbolsV2, DecimalSymbolsV2StrsBuilder, GroupingSizesV1, + DecimalSymbolStrsBuilder, DecimalSymbolsV2, GroupingSizesV1, }; let mut new_digits = ['\0'; 10]; for (old, new) in digits @@ -97,7 +97,7 @@ pub mod ffi { *new = char::from_u32(old).unwrap_or(char::REPLACEMENT_CHARACTER); } let digits = new_digits; - let strings = DecimalSymbolsV2StrsBuilder { + let strings = DecimalSymbolStrsBuilder { plus_sign_prefix: str_to_cow(plus_sign_prefix), plus_sign_suffix: str_to_cow(plus_sign_suffix), minus_sign_prefix: str_to_cow(minus_sign_prefix), diff --git a/provider/source/src/decimal/symbols.rs b/provider/source/src/decimal/symbols.rs index 650ee16be71..2d1a748e2a8 100644 --- a/provider/source/src/decimal/symbols.rs +++ b/provider/source/src/decimal/symbols.rs @@ -79,7 +79,7 @@ impl TryFrom> for DecimalSymbolsV2<'static> { let minus_sign_affixes = parsed_pattern.localize_sign(&symbols.minus_sign); let plus_sign_affixes = parsed_pattern.localize_sign(&symbols.plus_sign); - let strings = DecimalSymbolsV2StrsBuilder { + let strings = DecimalSymbolStrsBuilder { minus_sign_prefix: minus_sign_affixes.0.into(), minus_sign_suffix: minus_sign_affixes.1.into(), plus_sign_prefix: plus_sign_affixes.0.into(),