rust-osdev / ucs2-rs

UCS-2 conversion utilities for Rust.
Mozilla Public License 2.0
6 stars 5 forks source link

Add method to decode UCS-2 #7

Closed IsaacWoods closed 4 years ago

IsaacWoods commented 4 years ago

Adds a method to decode UCS-2 into UTF-8 code-points in a buffer. This buffer can then be used to construct a &str.

Also updates the crate to the newest edition.

GabrielMajeri commented 4 years ago

Looks good, will merge after doc is added

IsaacWoods commented 4 years ago

@GabrielMajeri Added a doc comment and bumped the version. I would appreciate if you would publish the new version to crates.io once this is merged, so I can bump the dependency in rust-osdev/uefi-rs#113.

I've also added myself as an author. If you do not find this appropriate, I would be happy to rework that commit to leave as is.

GabrielMajeri commented 4 years ago

Looks fine now, thanks!