Tracking Issue for char_max_len
· Issue #121714 · rust-lang/rust (original) (raw)
Feature gate: #![feature(char_max_len)]
This is a tracking issue for #45795.
Public API
// core::char
impl char { pub const MAX_LEN_UTF8: usize = 4; pub const MAX_LEN_UTF16: usize = 2; }
pub const MAX_LEN_UTF8: usize = char::MAX_LEN_UTF8; pub const MAX_LEN_UTF16: usize = char::MAX_LEN_UTF16;
Steps / History
- Implementation: Add MAX_LEN_UTF8 and MAX_LEN_UTF16 Constants #120580
- Final comment period (FCP)1
- Stabilization PR
Notes for Stabilization
When stabilizing this, the documentation for the char::encode_utf8 function should be
adjusted to include these constants.
Unresolved Questions
- None yet.