mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
Bump osstring_ascii stabilization version to 1.53.0.
This commit is contained in:
parent
93fda34bdb
commit
0acdada18b
@ -723,7 +723,7 @@ impl OsStr {
|
|||||||
///
|
///
|
||||||
/// assert_eq!("grÜße, jÜrgen ❤", s);
|
/// assert_eq!("grÜße, jÜrgen ❤", s);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn make_ascii_lowercase(&mut self) {
|
pub fn make_ascii_lowercase(&mut self) {
|
||||||
self.inner.make_ascii_lowercase()
|
self.inner.make_ascii_lowercase()
|
||||||
@ -748,7 +748,7 @@ impl OsStr {
|
|||||||
///
|
///
|
||||||
/// assert_eq!("GRüßE, JüRGEN ❤", s);
|
/// assert_eq!("GRüßE, JüRGEN ❤", s);
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn make_ascii_uppercase(&mut self) {
|
pub fn make_ascii_uppercase(&mut self) {
|
||||||
self.inner.make_ascii_uppercase()
|
self.inner.make_ascii_uppercase()
|
||||||
@ -770,7 +770,7 @@ impl OsStr {
|
|||||||
///
|
///
|
||||||
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
|
/// assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
pub fn to_ascii_lowercase(&self) -> OsString {
|
pub fn to_ascii_lowercase(&self) -> OsString {
|
||||||
OsString::from_inner(self.inner.to_ascii_lowercase())
|
OsString::from_inner(self.inner.to_ascii_lowercase())
|
||||||
}
|
}
|
||||||
@ -791,7 +791,7 @@ impl OsStr {
|
|||||||
///
|
///
|
||||||
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
|
/// assert_eq!("GRüßE, JüRGEN ❤", s.to_ascii_uppercase());
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
pub fn to_ascii_uppercase(&self) -> OsString {
|
pub fn to_ascii_uppercase(&self) -> OsString {
|
||||||
OsString::from_inner(self.inner.to_ascii_uppercase())
|
OsString::from_inner(self.inner.to_ascii_uppercase())
|
||||||
}
|
}
|
||||||
@ -809,7 +809,7 @@ impl OsStr {
|
|||||||
/// assert!(ascii.is_ascii());
|
/// assert!(ascii.is_ascii());
|
||||||
/// assert!(!non_ascii.is_ascii());
|
/// assert!(!non_ascii.is_ascii());
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_ascii(&self) -> bool {
|
pub fn is_ascii(&self) -> bool {
|
||||||
self.inner.is_ascii()
|
self.inner.is_ascii()
|
||||||
@ -829,7 +829,7 @@ impl OsStr {
|
|||||||
/// assert!(OsString::from("Ferrös").eq_ignore_ascii_case("FERRöS"));
|
/// assert!(OsString::from("Ferrös").eq_ignore_ascii_case("FERRöS"));
|
||||||
/// assert!(!OsString::from("Ferrös").eq_ignore_ascii_case("FERRÖS"));
|
/// assert!(!OsString::from("Ferrös").eq_ignore_ascii_case("FERRÖS"));
|
||||||
/// ```
|
/// ```
|
||||||
#[stable(feature = "osstring_ascii", since = "1.52.0")]
|
#[stable(feature = "osstring_ascii", since = "1.53.0")]
|
||||||
pub fn eq_ignore_ascii_case<S: AsRef<OsStr>>(&self, other: S) -> bool {
|
pub fn eq_ignore_ascii_case<S: AsRef<OsStr>>(&self, other: S) -> bool {
|
||||||
self.inner.eq_ignore_ascii_case(&other.as_ref().inner)
|
self.inner.eq_ignore_ascii_case(&other.as_ref().inner)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user