google / rust_icu

rust_icu: rust bindings for ICU (International Components for Unicode) library
Apache License 2.0
117 stars 28 forks source link

Support UCPTrie and UMutableCPTrie #247

Closed sffc closed 1 year ago

sffc commented 2 years ago

Currently ICU4X supports UCPTrie but not UMutableCPTrie, which is required to build UCPTrie. It would be nice if rust_icu could make the ICU4C implementation of this available to Rust clients until ICU4X implements it in Rust.

https://unicode-org.github.io/icu-docs/apidoc/dev/icu4c/umutablecptrie_8h_source.html

ICU4X issue: https://github.com/unicode-org/icu4x/issues/1837

filmil commented 2 years ago

What user is missing this feature today?

sffc commented 2 years ago

It would be nice to potentially leverage in ICU4X build tools.

filmil commented 2 years ago

Hm, in that case would you or someone from the more regular set of ICU4X contributors care to add the wrapper for the functionality you need?

sffc commented 2 years ago

I ended up writing a small C++ command-line tool for this for the short term.

filmil commented 1 year ago

sffc@ no longer needs this, closing.