#no-std #ucs2

no-std ucs2

UCS-2 decoding and encoding functions

5 unstable releases

0.3.3 Apr 6, 2024
0.3.2 Oct 21, 2020
0.3.1 Jan 15, 2020
0.2.0 Nov 13, 2019
0.1.0 Aug 3, 2018

#241 in Encoding

Download history 11903/week @ 2025-01-21 9749/week @ 2025-01-28 8595/week @ 2025-02-04 7567/week @ 2025-02-11 7993/week @ 2025-02-18 7663/week @ 2025-02-25 8231/week @ 2025-03-04 8956/week @ 2025-03-11 10218/week @ 2025-03-18 9910/week @ 2025-03-25 9277/week @ 2025-04-01 11015/week @ 2025-04-08 9423/week @ 2025-04-15 9556/week @ 2025-04-22 8402/week @ 2025-04-29 7589/week @ 2025-05-06

36,707 downloads per month
Used in 17 crates (5 directly)

MPL-2.0 license

13KB
223 lines

Utility functions for the UCS-2 character encoding.


ucs2-rs

UCS2 crate on crates.io UCS2 docs on docs.rs Licensed under MPL-2.0

UCS-2 handling for Rust.

Note that UCS-2 is the predecessor of UTF-16. It is a fixed-length encoding, and it is used for things like UEFI.

History

This crate arose out of the needs of the uefi-rs crate. The code was extracted and placed here for easier maintenance and easier reuse.

Most of the initial code has been contributed by FredrikAleksander.

License

Licensed under the Mozilla Public License 2.0. See the LICENSE file for the full text.

Dependencies

~29KB