commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
73040b699a29d771f39425302a3f39db28fbea1a | Manish Goregaokar | 2022-07-11T15:36:21 | Some databake improvements (#2150)
* All-features on docs.rs
* Add docs
* Bump databake to 0.1.1
* lockfile
* mention const
* fixes | diff --git a/Cargo.lock b/Cargo.lock
index 88ce7b9837..5ce274886b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -658,7 +658,7 @@ dependencies = [
[[package]]
name = "databake"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"databake-derive",
"proc-macro2",
@@ -668,7 +668,7 @@ dependencies = [
[[packag... | 4 | 26 | 6 |
2eae3d2320dce49b6758bc83844fba5ce82e4c5e | Robert Bastian | 2022-07-11T13:00:35 | Fixing collator datagen (#2161) | diff --git a/provider/datagen/src/transform/icuexport/collator/mod.rs b/provider/datagen/src/transform/icuexport/collator/mod.rs
index e27431ccfd..9acfb05935 100644
--- a/provider/datagen/src/transform/icuexport/collator/mod.rs
+++ b/provider/datagen/src/transform/icuexport/collator/mod.rs
@@ -40,7 +40,7 @@ fn locale_t... | 1 | 1 | 2 |
1ee9587a1ae39715677a53dcaf912460d2b33df1 | Robert Bastian | 2022-07-08T06:39:31 | Fixing silent datagen error (#2149) | diff --git a/provider/datagen/src/databake.rs b/provider/datagen/src/databake.rs
index d27b34206a..cfacf19650 100644
--- a/provider/datagen/src/databake.rs
+++ b/provider/datagen/src/databake.rs
@@ -130,133 +130,136 @@ impl DataExporter for BakedDataExporter {
}
fn flush(&self, key: ResourceKey) -> Result<(... | 2 | 117 | 116 |
ba52ba20451ae48ac756bddc6c00f2f2f9c41724 | Dan Minor | 2022-07-06T14:31:52 | Class Hierarchy for DateTimeFormat (#2133)
* Create separate TimeFormat structure
* Create separate DateFormat structure
* Add DateTimeFormat::try_from_date_and_time
* Review feedback, fixes and testing
* Fixes after rebase | diff --git a/components/datetime/src/datetime.rs b/components/datetime/src/datetime.rs
index 3c4d340ffe..1db84ba396 100644
--- a/components/datetime/src/datetime.rs
+++ b/components/datetime/src/datetime.rs
@@ -6,7 +6,7 @@
//! Central to this is the [`DateTimeFormat`].
use crate::{
- options::{components, DateTi... | 7 | 944 | 75 |
7b7ae456f69fdf9ded27e3382bfc273a9a39c7a6 | Elango | 2022-07-01T00:19:16 | Enable missing docs lint in datetime fields (#2128) | diff --git a/components/datetime/src/fields/length.rs b/components/datetime/src/fields/length.rs
index 91b81224aa..0dc8077bc6 100644
--- a/components/datetime/src/fields/length.rs
+++ b/components/datetime/src/fields/length.rs
@@ -6,9 +6,15 @@ use core::cmp::{Ord, PartialOrd};
use displaydoc::Display;
use zerovec::ul... | 6 | 222 | 63 |
c1fc6a103ddb06f2250b35d1e745be66e140d4e3 | Manish Goregaokar | 2022-06-30T16:08:14 | Move Formatted[Zoned]DateTime over to preextracting the date time input info (#2138)
* Add ExtractedFooInput
* No longer return references from TimeZoneInput
* Move FormattedDateTime over to ExtractedDateTimeInput
* Move FormattedZonedDateTime over to ExtractedZonedDateTimeInput
* todo comment | diff --git a/components/calendar/src/types.rs b/components/calendar/src/types.rs
index 59dfdee113..233d496e80 100644
--- a/components/calendar/src/types.rs
+++ b/components/calendar/src/types.rs
@@ -19,7 +19,7 @@ use zerovec::ule::AsULE;
pub struct Era(pub TinyStr16);
/// Representation of a formattable year.
-#[de... | 12 | 206 | 65 |
16f5736bfb53b4125059006150bb5a60ca7f76df | Elango | 2022-06-28T15:55:31 | Enable missing docs lint in decimal component (#2125) | diff --git a/components/decimal/src/error.rs b/components/decimal/src/error.rs
index 8b1848c61e..95ab3f310b 100644
--- a/components/decimal/src/error.rs
+++ b/components/decimal/src/error.rs
@@ -6,10 +6,11 @@
use displaydoc::Display;
-#[allow(missing_docs)] // TODO(#1025) - Add missing docs.
+/// A list of possibl... | 2 | 3 | 1 |
93ae865ce5365944f1869e4838866572d87a1953 | Manish Goregaokar | 2022-06-28T15:10:49 | Set databake version to 0.1.0 for publishing (#2126)
* Unbump databake ver
* Autoreplace databake deps
* straggling fixes
* lockfile | diff --git a/Cargo.lock b/Cargo.lock
index 1b5df651fd..2473919f66 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -658,7 +658,7 @@ dependencies = [
[[package]]
name = "databake"
-version = "0.4.0"
+version = "0.1.0"
dependencies = [
"databake-derive",
"proc-macro2",
@@ -668,7 +668,7 @@ dependencies = [
[[packag... | 23 | 26 | 26 |
a062a9307535788f4637bc05c37bfb5214cfda26 | Robin Leroy | 2022-06-28T03:23:34 | Switch FixedDecimal to a trivaluate sign (#2025) | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 933b51b746..624a5a41da 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -23,7 +23,7 @@ const_assert!(core::mem::size_of::<usize>() >= core::mem::size_of::<u16>());
/// A struct contai... | 2 | 109 | 24 |
f62d39c412b4f63a618eeff2ee0fcc0cfccef8c8 | Shane F. Carr | 2022-06-28T01:11:33 | Use get_by in BlobDataProvider lookup function (#2033) | diff --git a/provider/blob/src/blob_data_provider.rs b/provider/blob/src/blob_data_provider.rs
index bb1729a98a..63f3e3273b 100644
--- a/provider/blob/src/blob_data_provider.rs
+++ b/provider/blob/src/blob_data_provider.rs
@@ -7,9 +7,8 @@ use icu_provider::buf::BufferFormat;
use icu_provider::prelude::*;
use icu_prov... | 2 | 24 | 23 |
aea6914ee35616170ce0b9f87db8713347f09dd1 | Elango | 2022-06-27T20:57:08 | Add missing_docs boilerplate to icu component (#2124) | diff --git a/components/icu/src/lib.rs b/components/icu/src/lib.rs
index 6d7e2fb629..d1c987b11b 100644
--- a/components/icu/src/lib.rs
+++ b/components/icu/src/lib.rs
@@ -87,6 +87,7 @@
clippy::panic
)
)]
+#![warn(missing_docs)]
pub mod calendar {
//! Contains the core types used by ICU4X for deal... | 1 | 1 | 0 |
5e47573eb913f3ccab8026f925f25e69e69fe120 | Elango | 2022-06-27T20:56:49 | Move boilerplate to canonical location for list component (#2123) | diff --git a/components/list/src/lib.rs b/components/list/src/lib.rs
index d9e06ec08b..e57be65cd5 100644
--- a/components/list/src/lib.rs
+++ b/components/list/src/lib.rs
@@ -2,8 +2,6 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE )... | 1 | 1 | 2 |
16a13b1ca940567d394b86ee6fbbf9d50b656840 | Elango | 2022-06-27T19:48:45 | Add docs in locid to replace missing_docs warning suppressions (#2113) | diff --git a/components/locid/src/extensions/mod.rs b/components/locid/src/extensions/mod.rs
index 6c6bd18bbe..83e1bcde30 100644
--- a/components/locid/src/extensions/mod.rs
+++ b/components/locid/src/extensions/mod.rs
@@ -73,8 +73,7 @@ pub enum ExtensionType {
}
impl ExtensionType {
- #[allow(missing_docs)] // ... | 6 | 22 | 16 |
d206a7173722b167dabd3cec71c8f87965669226 | Shane F. Carr | 2022-06-27T17:05:33 | Add more strict_cmp_iter and migrate ResourceOptions::strict_cmp (#2114) | diff --git a/components/locid/src/extensions/unicode/keywords.rs b/components/locid/src/extensions/unicode/keywords.rs
index d485c24664..93a4d931d6 100644
--- a/components/locid/src/extensions/unicode/keywords.rs
+++ b/components/locid/src/extensions/unicode/keywords.rs
@@ -3,11 +3,13 @@
// (online at: https://github.... | 4 | 223 | 38 |
f6cad74993ff4bd455f1afb92c6e9499187f3629 | Shane F. Carr | 2022-06-27T16:25:17 | Add iai benches for VarZeroVec (#2119) | diff --git a/utils/zerovec/benches/zerovec_iai.rs b/utils/zerovec/benches/zerovec_iai.rs
index 455dd464dd..c34a6aebc0 100644
--- a/utils/zerovec/benches/zerovec_iai.rs
+++ b/utils/zerovec/benches/zerovec_iai.rs
@@ -8,6 +8,8 @@ use iai::black_box;
mod samples;
use samples::*;
+use zerovec::ule::VarULE;
+use zerovec:... | 3 | 43 | 0 |
6efed33a0e199d0d11acb550613219c339906d08 | Shane F. Carr | 2022-06-26T23:31:34 | Fix feature in calendar benches (#2116) | diff --git a/components/calendar/benches/date.rs b/components/calendar/benches/date.rs
index 25446abd62..89da15af2c 100644
--- a/components/calendar/benches/date.rs
+++ b/components/calendar/benches/date.rs
@@ -29,7 +29,6 @@ fn bench_date<A: AsCalendar>(date: &mut Date<A>) {
let _ = black_box(date.to_iso());
}
... | 1 | 0 | 1 |
0b5546af517832709e9bbafbb3a06f7af212bb15 | Elango | 2022-06-25T01:10:58 | Enable missing docs lint in plurals (#2108) | diff --git a/components/plurals/src/lib.rs b/components/plurals/src/lib.rs
index bffa206014..aff851161e 100644
--- a/components/plurals/src/lib.rs
+++ b/components/plurals/src/lib.rs
@@ -76,6 +76,7 @@
clippy::exhaustive_enums
)
)]
+#![warn(missing_docs)]
extern crate alloc;
diff --git a/components/p... | 4 | 43 | 15 |
e3830ee36d1551771868b6bc266e02fd33104628 | Shane F. Carr | 2022-06-24T23:53:57 | Add initial strict_cmp_iter function (#2111) | diff --git a/components/locid/src/lib.rs b/components/locid/src/lib.rs
index 5577d030dd..ab603f744b 100644
--- a/components/locid/src/lib.rs
+++ b/components/locid/src/lib.rs
@@ -85,6 +85,7 @@ pub mod extensions;
mod langid;
mod locale;
mod macros;
+pub mod ordering;
mod parser;
#[cfg(feature = "serde")]
mod serd... | 3 | 108 | 8 |
1257084134cdd5b2e5fd4473eb2da50cf29eeeea | Elango | 2022-06-24T23:17:42 | Enable missing docs lint in properties (#2107) | diff --git a/components/properties/src/error.rs b/components/properties/src/error.rs
index 3982456fc4..d9325110cd 100644
--- a/components/properties/src/error.rs
+++ b/components/properties/src/error.rs
@@ -13,6 +13,7 @@ use crate::Script;
#[cfg(feature = "std")]
impl std::error::Error for PropertiesError {}
+/// A... | 5 | 34 | 6 |
29b0e027697fb54c2cad189060bff87507bfc373 | Shane F. Carr | 2022-06-24T18:08:10 | Re-enable LTO on default release build (#2046) | diff --git a/Cargo.toml b/Cargo.toml
index 50a58c7397..948291de86 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -57,12 +57,13 @@ members = [
]
exclude = ["provider/testdata/data/const"]
+# LTO is needed for WASM and other size-optimized builds,
+# and it improve the performance of benchmarks
[profile.release]
+lto =... | 1 | 3 | 2 |
68107ef8a4142be0f2172d23a4703a7b40ca419f | Makoto Kato | 2022-06-24T15:58:12 | Remove litemap dependency from segmenter. (#2105) | diff --git a/Cargo.lock b/Cargo.lock
index c9113b2ed2..1b5df651fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1822,7 +1822,6 @@ dependencies = [
"icu_provider",
"icu_testdata",
"lazy_static",
- "litemap",
"ndarray",
"num-traits",
"serde",
diff --git a/experimental/segmenter/Cargo.toml b/experimental/segmen... | 4 | 12 | 13 |
a9bff5edd1d11ba9100b2892c4ccc30fcee8bf26 | Younies Mahmoud | 2022-06-24T00:26:18 | Add the rounded versions to the rounding modes. (#2100) | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 700c768e85..384c90b2f8 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -785,16 +785,12 @@ impl FixedDecimal {
///
/// let dec = FixedDecimal::from_str("-1.5").unwrap();
/... | 1 | 198 | 19 |
76e8d7a9807288c6277c52afb8e54e210240dbe7 | Shane F. Carr | 2022-06-24T00:25:45 | Add FixedDecimal strip_left and strip_right (#1986)
Add FixedDecimal strip_left and strip_right | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 39275a99ad..700c768e85 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -450,6 +450,114 @@ impl FixedDecimal {
self
}
+ /// Remove leading zeroes, consuming self and r... | 1 | 110 | 0 |
7870301dd1dab0770e84902bc3f13afc4de1b198 | Henri Sivonen | 2022-06-23T20:05:15 | Clean up Hangul math in Composition (#2096)
* Clean up Hangul math in Composition
* Use named constants instead of magic numbers.
* Use wrapping_sub with HANGUL_S_BASE. (Couldn't find a way to trigger a debug-mode overflow without this, though.)
* Fix off-by-one errors with trail jamos | diff --git a/experimental/normalizer/src/lib.rs b/experimental/normalizer/src/lib.rs
index 609804e994..379aa26898 100644
--- a/experimental/normalizer/src/lib.rs
+++ b/experimental/normalizer/src/lib.rs
@@ -147,9 +147,13 @@ const HANGUL_S_BASE: u32 = 0xAC00;
const HANGUL_L_BASE: u32 = 0x1100;
/// Vowel jamo base
con... | 2 | 50 | 13 |
6d0d0068c1b840eafdd8a4351e0112995eab03fa | Shane F. Carr | 2022-06-23T17:44:18 | Add more size tests to locid (#2078) | diff --git a/components/locid/src/locale.rs b/components/locid/src/locale.rs
index 5ac9bc0915..4f1d44d21f 100644
--- a/components/locid/src/locale.rs
+++ b/components/locid/src/locale.rs
@@ -78,7 +78,24 @@ pub struct Locale {
}
#[test]
-fn test() {
+fn test_sizes() {
+ assert_eq!(core::mem::size_of::<subtags::La... | 1 | 18 | 1 |
9ac11ffdb47f59374c6e2ed933e071bea492eb7d | Christopher Durham | 2022-06-23T06:15:07 | Remove stable_deref_trait/alloc from yoke's default feature set (#2094) | diff --git a/utils/yoke/Cargo.toml b/utils/yoke/Cargo.toml
index e50813e968..f13df37160 100644
--- a/utils/yoke/Cargo.toml
+++ b/utils/yoke/Cargo.toml
@@ -30,7 +30,7 @@ default = ["alloc", "zerofrom"]
all-features = true
[dependencies]
-stable_deref_trait = { version = "1.2.0", features = ["alloc"], default-feature... | 1 | 1 | 1 |
1e072b3248b93a974e21f3d01bc6a165eb272554 | Manish Goregaokar | 2022-06-20T20:31:54 | Update postcard to latest alpha (#2091)
* Update postcard to alpha 4
* Fix errors
* better api
* clippy + fmt | diff --git a/Cargo.lock b/Cargo.lock
index 6baf184578..0b9e94a7bb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -396,6 +396,12 @@ dependencies = [
"vec_map",
]
+[[package]]
+name = "cobs"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67ba02a97a2bd10f4b59b25c7973101... | 14 | 30 | 37 |
a5468f59e0c55de4e94ab29be2ec4d5b0eff482a | Shane F. Carr | 2022-06-17T23:29:29 | Fix example to use -u-nu instead of -u-ns (#2077) | diff --git a/provider/adapters/src/fallback/mod.rs b/provider/adapters/src/fallback/mod.rs
index e329b934d0..50e70668e0 100644
--- a/provider/adapters/src/fallback/mod.rs
+++ b/provider/adapters/src/fallback/mod.rs
@@ -137,16 +137,16 @@ pub struct LocaleFallbackConfig {
/// use icu_provider_adapters::fallback::Loc... | 1 | 3 | 3 |
c48e3326f724cf9a31bb0a01523b67ade0325af6 | Robert Bastian | 2022-06-16T09:57:16 | Fixing merge race (#2075) | diff --git a/components/locid/src/langid.rs b/components/locid/src/langid.rs
index 0c0b273abd..b5df40781a 100644
--- a/components/locid/src/langid.rs
+++ b/components/locid/src/langid.rs
@@ -447,7 +447,7 @@ impl
///
/// ```
/// use icu::locid::LanguageIdentifier;
-/// use icu::locid::{language, region, script, langi... | 5 | 9 | 7 |
12f2ed1fba13a5e920b4488536f8e434a69b369a | Makoto Kato | 2022-06-16T06:12:20 | Remove std dependency from segmenter_lstm. (#2064) | diff --git a/Cargo.lock b/Cargo.lock
index 55538e4f02..7daab9b0df 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2100,9 +2100,9 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
[[package]]
name = "matrixmultiply"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.... | 5 | 16 | 11 |
ab8e92dafeccdd604b0d6272beeeaecb525b9099 | Shane F. Carr | 2022-06-15T11:37:09 | Fix test failure on main in icu_locid (#2067) | diff --git a/components/locid/src/locale.rs b/components/locid/src/locale.rs
index fb916ea739..b7c33a7d9a 100644
--- a/components/locid/src/locale.rs
+++ b/components/locid/src/locale.rs
@@ -79,7 +79,7 @@ pub struct Locale {
#[test]
fn test() {
- assert_eq!(core::mem::size_of::<Locale>(), 184);
+ assert_eq!(c... | 1 | 1 | 1 |
c8ba00e23f0045ee2d2fd7de33a3739d47178d94 | Robert Bastian | 2022-06-15T08:19:01 | Databake test macro (#2063) | diff --git a/experimental/crabbake/src/lib.rs b/experimental/crabbake/src/lib.rs
index 6576a8b6b6..6ced04f2c0 100644
--- a/experimental/crabbake/src/lib.rs
+++ b/experimental/crabbake/src/lib.rs
@@ -141,16 +141,59 @@ where
}
}
-#[test]
-fn test_primitives() {
- let val = &[Some((18, Cow::Borrowed("hi")))][..... | 3 | 79 | 83 |
d094e04dbbead31894eaa35648bc5f5bb29b2ad1 | Yvonne Z | 2022-06-14T23:32:34 | Change Variants to be a ShortVec<Variant> (#1988)
Co-authored-by: Yvonne Zhang <yvonnezhang@google.com> | diff --git a/components/locid/src/helpers.rs b/components/locid/src/helpers.rs
index 2c50f71082..b1c5ba863a 100644
--- a/components/locid/src/helpers.rs
+++ b/components/locid/src/helpers.rs
@@ -56,6 +56,12 @@ impl<T> From<Vec<T>> for ShortVec<T> {
}
}
+impl<T> Default for ShortVec<T> {
+ fn default() -> Sel... | 2 | 12 | 70 |
dfb130699868ac678036ac4a605a03c318816b48 | Shane F. Carr | 2022-06-14T22:21:17 | More impls in zerovec crate (#2054) | diff --git a/utils/zerovec/src/flexzerovec/crabbake.rs b/utils/zerovec/src/flexzerovec/crabbake.rs
new file mode 100644
index 0000000000..5cc4f5d7fb
--- /dev/null
+++ b/utils/zerovec/src/flexzerovec/crabbake.rs
@@ -0,0 +1,99 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at ... | 11 | 442 | 8 |
1572d4164c8eaf4d1b485e7b7cffbeca4fc73728 | Robert Bastian | 2022-06-14T17:15:10 | normalizing_eq, strict_cmp for LSRV subtags (#2048) | diff --git a/components/locale_canonicalizer/src/locale_canonicalizer.rs b/components/locale_canonicalizer/src/locale_canonicalizer.rs
index 0ce2866086..2b00143bec 100644
--- a/components/locale_canonicalizer/src/locale_canonicalizer.rs
+++ b/components/locale_canonicalizer/src/locale_canonicalizer.rs
@@ -112,32 +112,3... | 20 | 204 | 176 |
034e71b8ac08325190efb128d956fc00dca166b9 | Manish Goregaokar | 2022-06-13T20:32:24 | remove the symlink (#2050) | diff --git a/utils/litemap/src/serde_helpers.rs b/utils/litemap/src/serde_helpers.rs
deleted file mode 120000
index a074dd1af8..0000000000
--- a/utils/litemap/src/serde_helpers.rs
+++ /dev/null
@@ -1 +0,0 @@
-../../zerovec/src/map/serde_helpers.rs
\ No newline at end of file
diff --git a/utils/litemap/src/serde_helpers... | 3 | 171 | 2 |
5887c4b9d2806db8ae50976a9721d86e81845db0 | Makoto Kato | 2022-06-13T09:40:24 | Use dictionary segmenter for word. (#1936)
* Use dictionary segmenter for word.
* Fix clippy error | diff --git a/experimental/segmenter/src/complex.rs b/experimental/segmenter/src/complex.rs
new file mode 100644
index 0000000000..f01752e823
--- /dev/null
+++ b/experimental/segmenter/src/complex.rs
@@ -0,0 +1,109 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top lev... | 10 | 306 | 237 |
fcdbad1be0b92752f18ba8c63d36352f2781d5ff | Manish Goregaokar | 2022-06-11T00:36:53 | Initial AnyDateTimeFormat (#1987)
* Basic AnyDateTimeFormat | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index adac488843..abd49fe113 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -11,13 +11,15 @@ use crate::gregorian::Gregorian;
use crate::indian::Indian;
use crate::iso:... | 18 | 476 | 15 |
305cc84011b54d1b65a3ff3ec1d69c7a63705040 | Shane F. Carr | 2022-06-10T22:57:22 | Don't panic on invalid grouping sizes (#2042) | diff --git a/components/decimal/src/grouper.rs b/components/decimal/src/grouper.rs
index a2e9cc9312..db93aa0f79 100644
--- a/components/decimal/src/grouper.rs
+++ b/components/decimal/src/grouper.rs
@@ -6,6 +6,7 @@
use crate::options::GroupingStrategy;
use crate::provider::GroupingSizesV1;
+use core::cmp;
/// Re... | 2 | 55 | 6 |
6c9bae905c9ba1f930cdf7469f1bcb06e827b6cb | Younies Mahmoud | 2022-06-10T18:34:32 | Implement all the rounding options (#2000)
Implement all the rounding options | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 5d560fb66a..39275a99ad 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -254,6 +254,16 @@ impl FixedDecimal {
}
}
+ /// Gets the digit at the specified order of next l... | 1 | 684 | 115 |
1699bbdb2887d89dfe7b45d4b055b4fe33d5564e | Shane F. Carr | 2022-06-09T00:11:04 | Add more zerovec impls for usize and FlexZeroVec (#2023) | diff --git a/utils/zerovec/src/flexzerovec/mod.rs b/utils/zerovec/src/flexzerovec/mod.rs
index c1081f2165..b9cc7cb870 100644
--- a/utils/zerovec/src/flexzerovec/mod.rs
+++ b/utils/zerovec/src/flexzerovec/mod.rs
@@ -9,5 +9,6 @@ pub(crate) mod slice;
pub(crate) mod vec;
pub use owned::FlexZeroVecOwned;
+pub(crate) us... | 12 | 431 | 72 |
69813317b6ca06545181880e45861fcdcd549678 | Shane F. Carr | 2022-06-08T18:07:30 | ZeroVecLike cleanup (#2024)
* rm BorrowedZeroVecLike
* BorrowedVariant -> SliceVariant
* Add Slice to ZeroMapKV | diff --git a/components/datetime/src/provider/time_zones.rs b/components/datetime/src/provider/time_zones.rs
index 2400851e42..33d83f4ea6 100644
--- a/components/datetime/src/provider/time_zones.rs
+++ b/components/datetime/src/provider/time_zones.rs
@@ -6,7 +6,7 @@ use alloc::borrow::Cow;
use icu_provider::{yoke, zer... | 18 | 128 | 152 |
b6774e2212d47d9c24648ccc065ba4637c68b9ce | Bryan Dragon | 2022-06-08T16:17:01 | Include module name to disambiguate Pattern (#1889) (#2017) | diff --git a/components/datetime/src/format/zoned_datetime.rs b/components/datetime/src/format/zoned_datetime.rs
index a50b843e92..9087372264 100644
--- a/components/datetime/src/format/zoned_datetime.rs
+++ b/components/datetime/src/format/zoned_datetime.rs
@@ -8,7 +8,7 @@ use crate::date::ZonedDateTimeInput;
use cra... | 9 | 33 | 40 |
98da7a4f35151cfd1a656c4437a3a61d3640cd9d | Henri Sivonen | 2022-06-08T04:24:19 | Resolve XXX comments or replace them with TODOs pointing to issue numbers (#2014)
Closes #1904 | diff --git a/experimental/collator/fuzz/fuzz_targets/compare_utf16.rs b/experimental/collator/fuzz/fuzz_targets/compare_utf16.rs
index ecc452d201..d032b5b297 100644
--- a/experimental/collator/fuzz/fuzz_targets/compare_utf16.rs
+++ b/experimental/collator/fuzz/fuzz_targets/compare_utf16.rs
@@ -79,8 +79,6 @@ fn compare_... | 4 | 73 | 87 |
2b75f5aa3af24cd6c35acee03a09998fbe444636 | Robert Bastian | 2022-06-08T00:23:10 | Direct zip file reading in datagen (#1989) | diff --git a/Cargo.lock b/Cargo.lock
index d6bf75d0f6..d8d89502ed 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,6 +17,18 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
+[[package]]
+name = "aes"
+v... | 11 | 360 | 135 |
142c718dc1627972ce186e70828c7e4c00a44c4e | snktd | 2022-06-07T23:05:50 | Create wrapper object for ScriptExtensions array return value #1536 (#1990)
* Create wrapper object for ScriptExtensions array return value #1536
* #1536 Create wrapper object for ScriptExtensions array return value
* Resolving a minor issue with code comments.
* Update components/properties/src/script.rs
... | diff --git a/components/properties/src/script.rs b/components/properties/src/script.rs
index eeaec44b64..a20f2af131 100644
--- a/components/properties/src/script.rs
+++ b/components/properties/src/script.rs
@@ -174,6 +174,55 @@ impl From<ScriptWithExt> for Script {
}
}
+/// A data structure that wraps ScriptExt... | 2 | 102 | 25 |
a6377a6b7c2f264663427182265c5b154cf1b35f | Shane F. Carr | 2022-06-07T01:38:58 | Add another method to icu_locid for vertical fallback (#1992) | diff --git a/components/locid/src/extensions/unicode/keywords.rs b/components/locid/src/extensions/unicode/keywords.rs
index 0edd91d472..4a3aaf7257 100644
--- a/components/locid/src/extensions/unicode/keywords.rs
+++ b/components/locid/src/extensions/unicode/keywords.rs
@@ -203,6 +203,32 @@ impl Keywords {
sel... | 2 | 27 | 1 |
568032bfd3682b50d32e77905695e0c1971d4e6f | Zibi Braniecki | 2022-06-05T18:27:41 | Add iai bench for CPT (#1870)
Co-authored-by: Zibi Braniecki <=> | diff --git a/Cargo.lock b/Cargo.lock
index 040a81e218..6e4c1038fb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1396,6 +1396,7 @@ dependencies = [
"crabbake",
"criterion",
"displaydoc",
+ "iai",
"icu_uniset",
"postcard",
"serde",
diff --git a/utils/codepointtrie/Cargo.toml b/utils/codepointtrie/Cargo.toml
in... | 3 | 84 | 0 |
42a725338b4faa78b87701ca026118cc257d62d3 | Shane F. Carr | 2022-06-04T00:13:07 | Refactor ZeroMap2d and add get_by functions (#1876) | diff --git a/provider/datagen/src/bin/fingerprint-data.rs b/provider/datagen/src/bin/fingerprint-data.rs
index 1e0775e75a..713950f413 100644
--- a/provider/datagen/src/bin/fingerprint-data.rs
+++ b/provider/datagen/src/bin/fingerprint-data.rs
@@ -106,12 +106,8 @@ fn main() -> eyre::Result<()> {
let map = provi... | 9 | 655 | 301 |
5e83a4b917affb061b0bed70dbdc346e220162a9 | Younies Mahmoud | 2022-06-03T02:32:21 | Ceil function. (#1923)
Implement Ceil, floor and truncate functions | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 9d27312ed5..391d53976d 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -552,6 +552,296 @@ impl FixedDecimal {
self.check_invariants();
}
+ /// Increments the digits b... | 1 | 290 | 0 |
00d4fbbe25d5975c9a7bb2070801a6f40c9070c0 | Shane F. Carr | 2022-06-02T22:27:32 | Add FlexZeroVec (#1790) | diff --git a/utils/zerovec/src/flexzerovec/mod.rs b/utils/zerovec/src/flexzerovec/mod.rs
new file mode 100644
index 0000000000..c1081f2165
--- /dev/null
+++ b/utils/zerovec/src/flexzerovec/mod.rs
@@ -0,0 +1,13 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the top level o... | 5 | 1,075 | 0 |
269b807d9f0eda2905efab6c9e6bd30d8c243a80 | Shane F. Carr | 2022-06-01T23:37:02 | Make various ZeroVec methods `const` (#1976) | diff --git a/experimental/collator/src/elements.rs b/experimental/collator/src/elements.rs
index b3f4a62d90..5c6acd5b5e 100644
--- a/experimental/collator/src/elements.rs
+++ b/experimental/collator/src/elements.rs
@@ -94,13 +94,13 @@ pub(crate) const FFFD_CE32_VALUE: u32 = 0xFFFD0505;
pub(crate) const FFFD_CE32: Coll... | 10 | 33 | 37 |
de6d2b34ad85a7ea1c6752b13d58dc7c3abc43bf | Manish Goregaokar | 2022-06-01T16:53:17 | Bump yoke to 0.6 (#1971)
* Bump yoke to 0.6.0
* update yoke deps
* lockfile | diff --git a/Cargo.lock b/Cargo.lock
index eaf48830ed..1029de85e1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3918,7 +3918,7 @@ dependencies = [
[[package]]
name = "yoke"
-version = "0.5.0"
+version = "0.6.0"
dependencies = [
"bincode",
"serde",
@@ -3929,7 +3929,7 @@ dependencies = [
[[package]]
name = "y... | 12 | 16 | 16 |
cf1b9a68a591a954cd8c731462e250efcf072e7d | Yvonne Z | 2022-05-31T21:49:41 | Rename Yoke::project functions to ::map_project (#1955)
* Rename Yoke::project functions to ::map_project
* Rename Yoke::project in docs.
* Rename Yoke::project in data_provider.rs | diff --git a/provider/blob/src/blob_data_provider.rs b/provider/blob/src/blob_data_provider.rs
index 07893f5d11..276e3162df 100644
--- a/provider/blob/src/blob_data_provider.rs
+++ b/provider/blob/src/blob_data_provider.rs
@@ -95,8 +95,9 @@ impl BufferProvider for BlobDataProvider {
Ok(DataResponse {
... | 3 | 38 | 36 |
a2fad0d803a35cc4e8c82fb20c8999fc03e470d6 | jedel1043 | 2022-05-31T16:21:32 | Remove implicit `Sized` bounds on some functions (#1969) | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
index 74f1f0e32e..fdb11dd8a5 100644
--- a/components/calendar/src/any_calendar.rs
+++ b/components/calendar/src/any_calendar.rs
@@ -257,7 +257,7 @@ impl AnyCalendar {
provider: &P,
) -> Result<Self, DataError>
... | 7 | 20 | 14 |
80083c9807269f41ed9ecddf7b36de2d61d7d1e7 | Shane F. Carr | 2022-05-27T19:45:34 | Add FixedDecimal::concatenate_right (#1953)
* Add FixedDecimal::concatenated
* Refactoring & clippy
* concatenate -> concatenate_right
* Use extend_from_slice for more efficiency | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 7ff36d65c7..9d27312ed5 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -618,6 +618,90 @@ impl FixedDecimal {
self.check_invariants();
}
+ /// Concatenate another `Fix... | 1 | 198 | 0 |
6f9c70e4128e2f057bccae52a50e2372f3e49b22 | Henri Sivonen | 2022-05-27T05:57:18 | GIGO fix-ups for the normalizer and the collator (#1931)
Closes #1892.
Closes #1891 | diff --git a/experimental/collator/src/elements.rs b/experimental/collator/src/elements.rs
index d5636e9875..b3f4a62d90 100644
--- a/experimental/collator/src/elements.rs
+++ b/experimental/collator/src/elements.rs
@@ -18,6 +18,7 @@
//! This module also declares various constants that are also used
//! by the `compar... | 3 | 314 | 136 |
c6a433fe991c433e1c736a10ba4795dbae08b7f4 | Henri Sivonen | 2022-05-26T20:19:34 | Tweak CollationMetadataV1 documentation and dead code (#1914) | diff --git a/experimental/collator/src/comparison.rs b/experimental/collator/src/comparison.rs
index 6962d3d21e..49f99c2835 100644
--- a/experimental/collator/src/comparison.rs
+++ b/experimental/collator/src/comparison.rs
@@ -192,7 +192,7 @@ impl Collator {
}
let jamo: DataPayload<CollationJamoV1Ma... | 2 | 27 | 22 |
3d72a098dc96bc5cd1a7cea68203c3e343075ad0 | Henri Sivonen | 2022-05-26T20:19:01 | Use a higher numeric value for `Strength::Identical` (#1942) | diff --git a/experimental/collator/src/options.rs b/experimental/collator/src/options.rs
index 7015f0d69b..bc48a444fe 100644
--- a/experimental/collator/src/options.rs
+++ b/experimental/collator/src/options.rs
@@ -14,6 +14,9 @@ use crate::elements::{CASE_MASK, TERTIARY_MASK};
/// If an earlier level isn't equal, the ... | 1 | 10 | 5 |
3f9a5e608749690453928fd464c2ee69c1f97eec | Henri Sivonen | 2022-05-26T20:18:48 | Validate the length of last_primaries (#1916) | diff --git a/experimental/collator/src/comparison.rs b/experimental/collator/src/comparison.rs
index b17befe4e9..6962d3d21e 100644
--- a/experimental/collator/src/comparison.rs
+++ b/experimental/collator/src/comparison.rs
@@ -20,7 +20,7 @@ use crate::provider::CollationJamoV1Marker;
use crate::provider::CollationMeta... | 2 | 8 | 1 |
b8e055818de108804f84128a0e99b8424201871d | Henri Sivonen | 2022-05-26T20:18:38 | Document the bit layout of CollationElement32 (#1913)
Closes #1910 | diff --git a/experimental/collator/src/elements.rs b/experimental/collator/src/elements.rs
index 2d7f2174d6..d5636e9875 100644
--- a/experimental/collator/src/elements.rs
+++ b/experimental/collator/src/elements.rs
@@ -188,6 +188,28 @@ pub(crate) enum Tag {
/// A compressed form of a collation element as stored in t... | 1 | 22 | 0 |
72d94a270fe2ea80dfaecc9051c6b8a7412b5a0e | Shane F. Carr | 2022-05-26T17:24:43 | Remove lifetime from ZeroVecLike (#1901) | diff --git a/utils/zerovec/src/map/borrowed.rs b/utils/zerovec/src/map/borrowed.rs
index ba8b56313c..32e21577da 100644
--- a/utils/zerovec/src/map/borrowed.rs
+++ b/utils/zerovec/src/map/borrowed.rs
@@ -42,8 +42,8 @@ where
K: ?Sized,
V: ?Sized,
{
- pub(crate) keys: <<K as ZeroMapKV<'a>>::Container as Zero... | 6 | 150 | 126 |
6944cbb228977815fda35a8d09000d5f6c167550 | Shane F. Carr | 2022-05-26T17:23:18 | Simplify function in rule_segmenter (#1880) | diff --git a/experimental/segmenter/src/rule_segmenter.rs b/experimental/segmenter/src/rule_segmenter.rs
index 9b2471ef16..1fb1d8e9df 100644
--- a/experimental/segmenter/src/rule_segmenter.rs
+++ b/experimental/segmenter/src/rule_segmenter.rs
@@ -167,13 +167,8 @@ impl<'l, 's, Y: RuleBreakType<'l, 's>> RuleBreakIterator... | 1 | 1 | 6 |
f6ffb443167beaa9fd488a0cce263e20418b4cb4 | Robert Bastian | 2022-05-24T18:55:41 | Crabbake for utils (#1926) | diff --git a/Cargo.lock b/Cargo.lock
index 593a35a267..3460c42d0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1370,6 +1370,7 @@ dependencies = [
name = "icu_char16trie"
version = "0.1.0"
dependencies = [
+ "crabbake",
"serde",
"toml",
"zerovec",
@@ -1379,6 +1380,7 @@ dependencies = [
name = "icu_codepointtri... | 23 | 215 | 3 |
b914f53170fbdeed2e9929e5d4afd62601059cca | Robert Bastian | 2022-05-24T18:48:40 | Deprecate yoke's `badly` methods (#1930) | diff --git a/provider/blob/src/blob_data_provider.rs b/provider/blob/src/blob_data_provider.rs
index 4b66ce13c1..07893f5d11 100644
--- a/provider/blob/src/blob_data_provider.rs
+++ b/provider/blob/src/blob_data_provider.rs
@@ -65,7 +65,7 @@ impl BlobDataProvider {
/// Create a [`BlobDataProvider`] from a blob of I... | 5 | 24 | 77 |
768a0c0f0351137c32333b9b68670c976e81473a | Shane F. Carr | 2022-05-24T06:33:06 | Add missing serde feature propagation (#1934) | diff --git a/experimental/normalizer/Cargo.toml b/experimental/normalizer/Cargo.toml
index d563543932..71b49335da 100644
--- a/experimental/normalizer/Cargo.toml
+++ b/experimental/normalizer/Cargo.toml
@@ -51,5 +51,5 @@ bench = false # This option is required for Benchmark CI
[features]
default = []
-serde = ["de... | 1 | 1 | 1 |
5025df3a3d5c2af5d6bb661a6ceef98d56fc0d4e | Shane F. Carr | 2022-05-23T16:53:51 | Improve integer operations in FixedDecimal (#1924) | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index c11943e579..7ff36d65c7 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -215,7 +215,7 @@ impl FixedDecimal {
// The following line can't fail: magnitude <= self.magnitude, b... | 3 | 190 | 17 |
d639e265fa7bc01a6fd8a5b6a1f4d5ad82a759b8 | Henri Sivonen | 2022-05-23T08:06:03 | Remove the unused postcard dependency from the collator (#1917)
Closes #1907 | diff --git a/Cargo.lock b/Cargo.lock
index 602a044f38..593a35a267 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1415,7 +1415,6 @@ dependencies = [
"icu_properties",
"icu_provider",
"icu_testdata",
- "postcard",
"serde",
"smallvec",
"utf8_iter",
diff --git a/experimental/collator/Cargo.toml b/experimental/col... | 2 | 0 | 2 |
cedb67fca4523119c29aebc7b0c6cbcb1bb3ce6e | Henri Sivonen | 2022-05-23T08:05:13 | Add comments noting why unsafe blocks are OK (#1915)
Closes #1909 | diff --git a/experimental/collator/src/elements.rs b/experimental/collator/src/elements.rs
index 72cbfcac7e..2d7f2174d6 100644
--- a/experimental/collator/src/elements.rs
+++ b/experimental/collator/src/elements.rs
@@ -514,6 +514,8 @@ impl CharacterAndClass {
CharacterAndClass(u32::from(c) | (0xFF << 24))
... | 2 | 4 | 0 |
26acf4fd2cfc629a091ba91ac70eac3fe001c946 | andrewpollack | 2022-05-20T18:35:41 | Adding high level date and datetime example to base structs, fixing typo (#1866)
* Adding high level date and datetime example to base structs
* Substituting unwrap for expect
* Substituting unwrap for expect
* Adding ISO to message | diff --git a/components/calendar/src/date.rs b/components/calendar/src/date.rs
index 0076c600ad..1557733412 100644
--- a/components/calendar/src/date.rs
+++ b/components/calendar/src/date.rs
@@ -34,10 +34,22 @@ impl<C: Calendar> AsCalendar for Rc<C> {
}
}
-/// A date for a given calendar
+/// A date for a given... | 3 | 33 | 6 |
319d2f46f8566cfe74e94fc39c7c8c19f43b9b82 | Gollapudi Vamsi Krishna | 2022-05-18T16:32:38 | Fix iso fixed conversion (#1898) | diff --git a/components/calendar/src/ethiopic.rs b/components/calendar/src/ethiopic.rs
index edea809457..ea1ae8abcf 100644
--- a/components/calendar/src/ethiopic.rs
+++ b/components/calendar/src/ethiopic.rs
@@ -302,4 +302,19 @@ mod test {
assert_eq!(ethiopic_date.0.month, 13);
assert_eq!(ethiopic_date... | 2 | 16 | 1 |
ab1f91f6e78273e538c202aa5720150b789d95a3 | Robert Bastian | 2022-05-17T14:41:08 | Making `time_granularity` public (#1867) | diff --git a/components/datetime/src/pattern/common/serde.rs b/components/datetime/src/pattern/common/serde.rs
index 19bc76bd84..382d96fdad 100644
--- a/components/datetime/src/pattern/common/serde.rs
+++ b/components/datetime/src/pattern/common/serde.rs
@@ -129,7 +129,7 @@ mod runtime {
struct PatternForSerde<'da... | 3 | 11 | 13 |
2fa1b05423b87cd1206266157f877ccd4baa7396 | Robert Bastian | 2022-05-17T14:39:35 | Making `DataProvider: Sync + Send` (#1853) | diff --git a/Cargo.lock b/Cargo.lock
index 5befba2416..cb11e57671 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1607,6 +1607,7 @@ dependencies = [
"postcard",
"serde",
"serde_json",
+ "stable_deref_trait",
"static_assertions",
"writeable",
"yoke",
diff --git a/experimental/segmenter_lstm/tests/lstm_test.rs b... | 13 | 92 | 55 |
cd0066f506863b2a5d5b256c6d659d7f56c83932 | andrewpollack | 2022-05-16T19:00:38 | Adding Japanese date/datetime example (#1886)
* Adding Japanese date/datetime example
* Slight change
* Fixing missing date call
* Update components/calendar/src/japanese.rs
Co-authored-by: Manish Goregaokar <manishsmail@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index 24282209e3..5befba2416 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1294,8 +1294,10 @@ version = "0.6.0"
dependencies = [
"displaydoc",
"icu",
+ "icu_calendar",
"icu_locid",
"icu_provider",
+ "icu_testdata",
"serde",
"tinystr 0.6.0",
"zerovec",
diff --git a/comp... | 3 | 43 | 1 |
fcdca71a2b126ed127e87a55c8c2bbf07573496d | Makoto Kato | 2022-05-16T15:36:21 | Move language detection to language.rs (#1689)
* Move language detection to language.rs
* Fix cargo clippy | diff --git a/experimental/segmenter/src/language.rs b/experimental/segmenter/src/language.rs
index e2d2322a58..052b7052f9 100644
--- a/experimental/segmenter/src/language.rs
+++ b/experimental/segmenter/src/language.rs
@@ -2,6 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https:/... | 2 | 137 | 44 |
1092f1f7ada610f68cdd020be8ebce63b1fe78b1 | Shane F. Carr | 2022-05-12T17:43:50 | Improve check_is macro for new combined functions (#1821) | diff --git a/utils/tinystr/src/ascii.rs b/utils/tinystr/src/ascii.rs
index 1089c673b1..c8cd6a3850 100644
--- a/utils/tinystr/src/ascii.rs
+++ b/utils/tinystr/src/ascii.rs
@@ -206,23 +206,21 @@ macro_rules! check_is {
true
}
};
- ($self:ident, $check_int:ident, $check_u8_comp:ident, !$check... | 1 | 9 | 14 |
7fce7de5a698e50c9acf2c7fb864375a5528ab9f | Zibi Braniecki | 2022-05-12T15:19:16 | Add LanguageIdentifier iai benches (#1865)
* Add LanguageIdentifier iai benches
* Add license header
* Dont use iai macro
* Add cmp_bytes | diff --git a/Cargo.lock b/Cargo.lock
index a741e5e5a8..cc4be11754 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1534,6 +1534,7 @@ version = "0.6.0"
dependencies = [
"criterion",
"displaydoc",
+ "iai",
"icu",
"icu_benchmark_macros",
"litemap",
diff --git a/components/locid/Cargo.toml b/components/locid/Cargo.t... | 3 | 121 | 0 |
af933312db94c47f1c7a89a7fe435267d77f99e8 | Shane F. Carr | 2022-05-11T19:38:47 | Refactor ULEs in icu_datetime to use make_ule (#1868) | diff --git a/components/datetime/src/fields/length.rs b/components/datetime/src/fields/length.rs
index 4acd71b672..5c77240a7e 100644
--- a/components/datetime/src/fields/length.rs
+++ b/components/datetime/src/fields/length.rs
@@ -4,6 +4,7 @@
use core::cmp::{Ord, PartialOrd};
use displaydoc::Display;
+use zerovec::... | 6 | 178 | 216 |
b6dc8afb75c43be69489dc1f957359fe35a43cda | Shane F. Carr | 2022-05-11T19:38:38 | Add array impl for ZeroMapKV (#1875) | diff --git a/utils/zerovec/src/map/kv.rs b/utils/zerovec/src/map/kv.rs
index 28be2e9c22..70f85d9263 100644
--- a/utils/zerovec/src/map/kv.rs
+++ b/utils/zerovec/src/map/kv.rs
@@ -56,7 +56,10 @@ impl_sized_kv!(char);
impl_sized_kv!(f32);
impl_sized_kv!(f64);
-impl<'a, T: AsULE + 'static> ZeroMapKV<'a> for Option<T> ... | 1 | 17 | 2 |
0e99bd581ab4d4f0d809cf2317fb46e90a6c1af2 | Dan Minor | 2022-05-09T20:31:45 | Bump utils in preparation for ICU4X 0.6 (#1869) | diff --git a/Cargo.lock b/Cargo.lock
index dc63bd99ae..ad9219dbd9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -565,7 +565,7 @@ dependencies = [
[[package]]
name = "deduplicating_array"
-version = "0.1.0"
+version = "0.1.1"
dependencies = [
"postcard",
"serde",
@@ -742,7 +742,7 @@ dependencies = [
[[package]... | 32 | 83 | 83 |
5714448bb9145bb21e6355f469aa18f8d3e59c1e | Manish Goregaokar | 2022-05-06T17:11:46 | non_exhaustive for provider crates (#1838)
* icu_provider non_exhaustive
* adapters non_exhaustive
* blob, fs non_exhaustive
* testdata non_exhaustive
* datagen non_exhaustive
* fixes
* fixup
* fixup after rebase | diff --git a/provider/adapters/src/either.rs b/provider/adapters/src/either.rs
index a77bd05992..81b198b928 100644
--- a/provider/adapters/src/either.rs
+++ b/provider/adapters/src/either.rs
@@ -15,6 +15,7 @@ use icu_provider::datagen;
///
/// Data provider traits implemented by both `P0` and `P1` are implemented on
... | 26 | 57 | 5 |
ad0793ce9fa374adb9f87869506203290fdad890 | Manish Goregaokar | 2022-05-06T16:31:57 | Add ability to construct AnyCalendars (#1827)
* Add ability to construct AnyCalendars
* fix
* fix
* docs
* Add match over values
* fmt
* re-add import | diff --git a/Cargo.lock b/Cargo.lock
index 1de7379a29..dc63bd99ae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1160,6 +1160,7 @@ version = "0.5.0"
dependencies = [
"displaydoc",
"icu",
+ "icu_locid",
"icu_provider",
"serde",
"tinystr 0.5.0",
diff --git a/components/calendar/Cargo.toml b/components/calendar/C... | 3 | 147 | 2 |
8cd78d9fc38c44fca80884d87d5efc1c133cc381 | andrewpollack | 2022-05-05T15:45:14 | Add `Date::new_from_iso(date_iso, X)` example for each calendar X (#1844)
* Fixing typo
* adding examples to top level calendars
* Adding coptic example
* Adding Buddhist Date example
* Bringing up-to-date to main. Fixing Coptic | diff --git a/components/calendar/src/buddhist.rs b/components/calendar/src/buddhist.rs
index 666b02658b..fbf77d1d74 100644
--- a/components/calendar/src/buddhist.rs
+++ b/components/calendar/src/buddhist.rs
@@ -2,7 +2,34 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/... | 7 | 193 | 7 |
3d904fd1aeaa0dcf51d23b249c6e662d99eef078 | Manish Goregaokar | 2022-05-05T15:39:32 | Non_exhaustive for plurals (#1793)
* non_exhaustive errors
* non_exhaustive plurals
Note: this assumes operands will be stable
* pub-crate ast itnernals
* review fixes
* fix | diff --git a/components/plurals/src/lib.rs b/components/plurals/src/lib.rs
index 016374c165..5c509cffd9 100644
--- a/components/plurals/src/lib.rs
+++ b/components/plurals/src/lib.rs
@@ -71,7 +71,9 @@
clippy::indexing_slicing,
clippy::unwrap_used,
clippy::expect_used,
- clippy::panic
+... | 7 | 36 | 19 |
aef2aa3ea45c5161f1045b418362ff9ac42eae4e | Shane F. Carr | 2022-05-05T11:42:11 | Merge datagen "reader" modules (#1854) | diff --git a/provider/datagen/src/transform/cldr/calendar/japanese.rs b/provider/datagen/src/transform/cldr/calendar/japanese.rs
index 67474e4808..ae3c04abd3 100644
--- a/provider/datagen/src/transform/cldr/calendar/japanese.rs
+++ b/provider/datagen/src/transform/cldr/calendar/japanese.rs
@@ -4,7 +4,7 @@
use crate:... | 15 | 32 | 57 |
dc8587a3855111ed2829b557097840d56d2c71be | Manish Goregaokar | 2022-05-05T02:19:48 | Improve calendar-specific date/datetime constructors (#1845)
* Fix Buddhist ctors
* Remove _from_integers for unambiguous methods
* fmt
* remove non_exhaustive from coptic
* allow
* fix
* calendar | diff --git a/components/calendar/src/buddhist.rs b/components/calendar/src/buddhist.rs
index 9c4215e936..666b02658b 100644
--- a/components/calendar/src/buddhist.rs
+++ b/components/calendar/src/buddhist.rs
@@ -4,9 +4,8 @@
//! This module contains types and implementations for the Buddhist calendar
-use crate::iso... | 6 | 45 | 75 |
7dc38085d9fda17eae4074dd5ed6713cfb7b0a86 | Shane F. Carr | 2022-05-04T13:01:43 | Move SerializedCodePointTrie to the library (#1850) | diff --git a/provider/datagen/src/transform/uprops/casemapping.rs b/provider/datagen/src/transform/uprops/casemapping.rs
index 862cd7d90a..b9558b682a 100644
--- a/provider/datagen/src/transform/uprops/casemapping.rs
+++ b/provider/datagen/src/transform/uprops/casemapping.rs
@@ -6,6 +6,7 @@ use crate::transform::uprops:... | 9 | 152 | 113 |
d4a02e706fdbbe15e021689404401b27b91701a4 | andrewpollack | 2022-05-03T15:46:17 | Fixing typo (#1843) | diff --git a/components/calendar/src/julian.rs b/components/calendar/src/julian.rs
index e1f6bb323f..e745db2150 100644
--- a/components/calendar/src/julian.rs
+++ b/components/calendar/src/julian.rs
@@ -234,7 +234,7 @@ impl Date<Julian> {
}
impl DateTime<Julian> {
- /// Constrict a new Julian datetime form integ... | 1 | 1 | 1 |
45d6792948644b5b9c99da10c0e1e1400f99f667 | andrewpollack | 2022-05-03T08:48:00 | Add `new_X_(date|datetime)_from_integers` examples (#1842)
* Adding examples for add-new-date-from-integers and add-new-datetime-from-integers for each calendar type
* Adjusting example days | diff --git a/components/calendar/src/buddhist.rs b/components/calendar/src/buddhist.rs
index 74836f02a9..9c4215e936 100644
--- a/components/calendar/src/buddhist.rs
+++ b/components/calendar/src/buddhist.rs
@@ -97,7 +97,28 @@ impl Calendar for Buddhist {
}
impl Date<Buddhist> {
- /// Construct a new Buddhist Dat... | 7 | 240 | 17 |
1199f96c2f4a00467e2bdb8bfa788c05755b0195 | andrewpollack | 2022-04-30T11:00:23 | Add negative 0 examples (#1807) | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index eb32fb26a7..47ae008e0d 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -310,6 +310,7 @@ impl FixedDecimal {
}
/// Change the value from negative to positive or from positive... | 1 | 25 | 0 |
78a148d4cdb625a8e9206fe5911c012abf1fe73e | Robin Leroy | 2022-04-29T14:32:54 | Add tests for FixedDecimal padding near large magnitudes (#1828) | diff --git a/utils/fixed_decimal/src/decimal.rs b/utils/fixed_decimal/src/decimal.rs
index 6fb24669d8..eb32fb26a7 100644
--- a/utils/fixed_decimal/src/decimal.rs
+++ b/utils/fixed_decimal/src/decimal.rs
@@ -1888,3 +1888,51 @@ fn test_truncate() {
dec.truncate_left(1);
assert_eq!("00.01", dec.to_string());
}
... | 1 | 48 | 0 |
f2fb74f82982f83c378054009141635283f91f33 | Manish Goregaokar | 2022-04-28T10:30:28 | Add AnyCalendar (#1802) | diff --git a/components/calendar/src/any_calendar.rs b/components/calendar/src/any_calendar.rs
new file mode 100644
index 0000000000..32139e0fb5
--- /dev/null
+++ b/components/calendar/src/any_calendar.rs
@@ -0,0 +1,341 @@
+// This file is part of ICU4X. For terms of use, please see the file
+// called LICENSE at the t... | 12 | 410 | 17 |
c0dc998de3dac8318c1e126bd7f4caa4a258bac1 | Gollapudi Vamsi Krishna | 2022-04-28T03:11:00 | Add Ethiopic calendar (#1779)
* Add ethiopic calendar
* Fix clippy
* Add method to set amete alem in Date and DateTime
* avoid using result
* Fix prev commit
* Make inner of date pub
* Fix prev commit | diff --git a/components/calendar/src/coptic.rs b/components/calendar/src/coptic.rs
index a38417ae6e..400c173cb9 100644
--- a/components/calendar/src/coptic.rs
+++ b/components/calendar/src/coptic.rs
@@ -20,7 +20,7 @@ use tinystr::tinystr;
pub struct Coptic;
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
-pub st... | 4 | 256 | 4 |
180e64610ae774cb51cb1d0839f90c2683f4f486 | Manish Goregaokar | 2022-04-27T14:47:00 | Fixup FFI features (#1818)
* Fix local running of FFI job
* Add format features
* fixup freertos build | diff --git a/ffi/capi_cdylib/Cargo.toml b/ffi/capi_cdylib/Cargo.toml
index 7473cbfed1..0f85cf0a6e 100644
--- a/ffi/capi_cdylib/Cargo.toml
+++ b/ffi/capi_cdylib/Cargo.toml
@@ -37,10 +37,13 @@ icu_capi = { version = "0.1", path = "../diplomat", default-features = false }
# Please keep features/cargo-all-features lists... | 5 | 21 | 5 |
f6a56a1b9f9d2127dcdc7c0a93219c98c93ec9ff | Younies Mahmoud | 2022-04-27T13:38:36 | Bidi Data Adapter (#1784)
Add Bidi Data Adapter | diff --git a/Cargo.lock b/Cargo.lock
index bbffcb9c2e..3535abf928 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1418,6 +1418,7 @@ dependencies = [
"icu_testdata",
"icu_uniset",
"serde",
+ "unicode-bidi",
"zerovec",
]
@@ -2910,9 +2911,9 @@ checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5... | 4 | 171 | 2 |
ccf3747495b7922c4e63c51902caae4d45781f9b | Manish Goregaokar | 2022-04-26T09:34:13 | non_exhaustive errors, locid, and decimal (#1792)
* non-exhaustive errors
* non_exhaustive decimal
* non_exhaustive locid
* non_exhaustive calendar | diff --git a/components/calendar/src/arithmetic.rs b/components/calendar/src/arithmetic.rs
index 6026e745f7..342b7555a3 100644
--- a/components/calendar/src/arithmetic.rs
+++ b/components/calendar/src/arithmetic.rs
@@ -11,6 +11,7 @@ pub mod week_of {
/// Information about how a given calendar assigns weeks to a ye... | 32 | 78 | 29 |
2397c6d1a29085459a57cb1420a8337abc8fc2a6 | Dan Minor | 2022-04-21T18:30:34 | Add FractionalSecond to Time (#1801)
* Add FractionalSecond to Time
* Fix fmt and clippy
* Address review feedback | diff --git a/components/calendar/src/buddhist.rs b/components/calendar/src/buddhist.rs
index 90aa3f4ca1..19f72801bf 100644
--- a/components/calendar/src/buddhist.rs
+++ b/components/calendar/src/buddhist.rs
@@ -120,7 +120,7 @@ impl DateTime<Buddhist> {
let iso_year = year - BUDDHIST_ERA_OFFSET;
Ok(Dat... | 12 | 118 | 48 |
b49d84ef82e31f0779837ba5b9662a6c181bb014 | andrewpollack | 2022-04-21T17:15:37 | 1712: add TinyAsciStr::is_ascii_alphabetic_lowercase, TinyAsciStr::is_ascii_alphabetic_titlecase, TinyAsciStr::is_ascii_alphabetic_uppercase (#1806)
* Implementing is_ascii_alphabetic_lowercase, titlecase, uppercase
* Minor adjustment to doc
* Remove unnecessary comment
* Optimizing bitops, adjusting comments | diff --git a/components/locid/src/subtags/language.rs b/components/locid/src/subtags/language.rs
index 212cf68e1c..b45dbd47f9 100644
--- a/components/locid/src/subtags/language.rs
+++ b/components/locid/src/subtags/language.rs
@@ -102,7 +102,7 @@ impl Language {
.map_err(|_| ParserError::InvalidSubtag)?;
... | 5 | 273 | 3 |
510946afc20c9f2547d06bfbc8e3883348d829e0 | Manish Goregaokar | 2022-04-19T16:10:43 | non_exhaustive for list and locale_canonicalizer (#1798)
* non_exhaustive locale_canonicalizer
* non_exhaustive list | diff --git a/components/list/src/lib.rs b/components/list/src/lib.rs
index abca30aec0..91e94f3ee4 100644
--- a/components/list/src/lib.rs
+++ b/components/list/src/lib.rs
@@ -43,6 +43,18 @@
//! [`ListFormatter`]: ListFormatter
#![cfg_attr(not(feature = "std"), no_std)]
+#![cfg_attr(
+ not(test),
+ deny(
+ ... | 5 | 23 | 1 |
3699de6575f74007da07c3cefeacb00e4853f7a2 | Manish Goregaokar | 2022-04-14T22:59:52 | non_exhaustive props (#1794) | diff --git a/components/properties/src/error.rs b/components/properties/src/error.rs
index 0e66b88cba..8d3f179fb0 100644
--- a/components/properties/src/error.rs
+++ b/components/properties/src/error.rs
@@ -9,6 +9,7 @@ use icu_provider::DataError;
impl std::error::Error for PropertiesError {}
#[derive(Display, Debu... | 5 | 18 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.