Skip to content

Commit

Permalink
Add datetime length patterns as skeleta and fix non-Gregorian datagen (
Browse files Browse the repository at this point in the history
…#4915)

Part of #1317

This PR adds new skeleta `DayComponents::Auto`,
`DayComponents::AutoWeekday`, and `TimeComponents::Auto` with data
populated from the datetime length patterns.

It also fixes non-Gregorian neo skeleta datagen.
  • Loading branch information
sffc committed May 24, 2024
1 parent 20a3bae commit 1cee87e
Show file tree
Hide file tree
Showing 2,114 changed files with 28,471 additions and 12,507 deletions.
2 changes: 1 addition & 1 deletion components/datetime/src/any/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ size_test!(DateFormatter, date_formatter_size, 4456);
/// # Examples
///
/// ```
/// use icu::calendar:: Date;
/// use icu::calendar::Date;
/// use icu::datetime::{options::length, DateFormatter};
/// use icu::locid::locale;
/// use writeable::assert_writeable_eq;
Expand Down
3 changes: 2 additions & 1 deletion components/datetime/src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,8 @@ where {
/// ```
/// use icu::calendar::Gregorian;
/// use icu::datetime::{
/// options::{components, length}, TypedDateTimeFormatter,
/// options::{components, length},
/// TypedDateTimeFormatter,
/// };
/// use icu::locid::locale;
///
Expand Down
2 changes: 1 addition & 1 deletion components/datetime/src/format/neo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1310,8 +1310,8 @@ impl<'a, C: CldrCalendar> DateTimePatternFormatter<'a, C> {
/// # Examples
///
/// ```
/// use icu::calendar::Time;
/// use icu::calendar::Gregorian;
/// use icu::calendar::Time;
/// use icu::datetime::fields::FieldLength;
/// use icu::datetime::neo_pattern::DateTimePattern;
/// use icu::datetime::TypedDateTimeNames;
Expand Down
2 changes: 2 additions & 0 deletions components/datetime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ pub mod input;
#[cfg(feature = "experimental")]
pub mod neo;
#[cfg(feature = "experimental")]
pub mod neo_marker;
#[cfg(feature = "experimental")]
pub mod neo_pattern;
#[cfg(any(feature = "datagen", feature = "experimental"))]
pub mod neo_skeleton;
Expand Down
Loading

0 comments on commit 1cee87e

Please sign in to comment.