Skip to content

Commit

Permalink
Update property enums to support CodepointTrie (#1089)
Browse files Browse the repository at this point in the history
* Make GC exhaustive

GeneralCategory will never be extended
See https://www.unicode.org/policies/stability_policy.html

* Add GeneralSubcategory to represent raw GC data

* Implement AsULE for GeneralSubcategory

* Cargo fmt

* refactor

* Make GC repr(u8)

* Cargo fmt

* Convert Script to an identifier

* Implement AsULE for Script

* Implement validate_byte_slice instead of parse_byte_slice

* Impl From<GeneralSubcategory> for GeneralCategory

* Remove default-implemented ULE methods

* Add safety comment on GeneralSubcategoryULE impl

Co-authored-by: Iain Ireland <iain.i.ireland@gmail.com>
  • Loading branch information
iainireland and Iain Ireland authored Oct 1, 2021
1 parent d11c840 commit 4aaac96
Show file tree
Hide file tree
Showing 6 changed files with 364 additions and 226 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions components/uniset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ all-features = true
[dependencies]
icu_provider = { version = "0.3", path = "../../provider/core", features = ["macros"] }
litemap = { version = "0.2", path = "../../utils/litemap" }
num_enum = { version = "0.5.4", default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"], optional = true }
tinystr = { version = "0.4.10", features = ["alloc"], default-features = false }
displaydoc = { version = "0.2.3", default-features = false }
Expand Down
Loading

0 comments on commit 4aaac96

Please sign in to comment.