-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
std_unicode::char::decode_utf16 should be in core #49319
Copy link
Copy link
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
decode_utf16function currently lives in thestd_unicodecrate. But, as far as I can tell, this function doesn't depend on any Unicode tables and has no reason to be in this crate.I suggest moving this function (and its associated iterator) into the
corecrate. This will allow for decoding UTF-16 text under#![no_std]in stable Rust.