Add link to Unicode White_Space property

This commit is contained in:
Arthur Carcano
2026-04-13 11:47:54 +02:00
parent 5ac90c6def
commit b52a38dbf3
2 changed files with 15 additions and 6 deletions
+9 -3
View File
@@ -223,9 +223,11 @@ pub fn escape_ascii(&self) -> EscapeAscii<'_> {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the `\0x0B` byte even though it has the unicode WhiteSpace property
/// the `\0x0B` byte even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim_start`].
///
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///
/// ```
@@ -254,9 +256,11 @@ pub const fn trim_ascii_start(&self) -> &[u8] {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the `\0x0B` byte even though it has the unicode WhiteSpace property
/// the `\0x0B` byte even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim_end`].
///
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///
/// ```
@@ -286,9 +290,11 @@ pub const fn trim_ascii_end(&self) -> &[u8] {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the `\0x0B` byte even though it has the unicode WhiteSpace property
/// the `\0x0B` byte even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim`].
///
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///
/// ```
+6 -3
View File
@@ -2900,10 +2900,11 @@ pub const fn make_ascii_lowercase(&mut self) {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the U+000B code point even though it has the unicode WhiteSpace property
/// the U+000B code point even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim_start`].
///
/// [`u8::is_ascii_whitespace`]: u8::is_ascii_whitespace
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///
@@ -2927,10 +2928,11 @@ pub const fn trim_ascii_start(&self) -> &str {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the U+000B code point even though it has the unicode WhiteSpace property
/// the U+000B code point even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim_end`].
///
/// [`u8::is_ascii_whitespace`]: u8::is_ascii_whitespace
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///
@@ -2955,10 +2957,11 @@ pub const fn trim_ascii_end(&self) -> &str {
///
/// 'Whitespace' refers to the definition used by
/// [`u8::is_ascii_whitespace`]. Importantly, this definition excludes
/// the U+000B code point even though it has the unicode WhiteSpace property
/// the U+000B code point even though it has the Unicode [`White_Space`] property
/// and is removed by [`str::trim`].
///
/// [`u8::is_ascii_whitespace`]: u8::is_ascii_whitespace
/// [`White_Space`]: https://www.unicode.org/reports/tr44/#White_Space
///
/// # Examples
///