Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Nov 13, 2024
1 parent 25ab52c commit dabe44d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/decimal/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down Expand Up @@ -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("+"),
Expand Down
4 changes: 2 additions & 2 deletions ffi/capi/src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion provider/source/src/decimal/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl TryFrom<NumbersWithNumsys<'_>> 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(),
Expand Down

0 comments on commit dabe44d

Please sign in to comment.