Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking Issue for char_max_len #121714

Open
3 tasks
HTGAzureX1212 opened this issue Feb 27, 2024 · 0 comments
Open
3 tasks

Tracking Issue for char_max_len #121714

HTGAzureX1212 opened this issue Feb 27, 2024 · 0 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@HTGAzureX1212
Copy link
Contributor

HTGAzureX1212 commented Feb 27, 2024

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

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.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

@HTGAzureX1212 HTGAzureX1212 added C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant