Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions library/core/src/ascii/ascii_char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,8 @@ impl AsciiChar {
self.to_u8().is_ascii_hexdigit()
}

/// Checks if the value is a punctuation character:
/// Checks if the value is a punctuation or symbol character
/// (i.e. not alphanumeric, whitespace, or control):
///
/// - 0x21 ..= 0x2F `! " # $ % & ' ( ) * + , - . /`, or
/// - 0x3A ..= 0x40 `: ; < = > ? @`, or
Expand Down Expand Up @@ -989,7 +990,8 @@ impl AsciiChar {
self.to_u8().is_ascii_punctuation()
}

/// Checks if the value is a graphic character:
/// Checks if the value is a graphic character
/// (i.e. not whitespace or control):
/// 0x21 '!' ..= 0x7E '~'.
///
/// # Examples
Expand Down
6 changes: 4 additions & 2 deletions library/core/src/char/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,8 @@ impl char {
matches!(*self, '0'..='9') | matches!(*self, 'A'..='F') | matches!(*self, 'a'..='f')
}

/// Checks if the value is an ASCII punctuation character:
/// Checks if the value is an ASCII punctuation or symbol character
/// (i.e. not alphanumeric, whitespace, or control):
///
/// - U+0021 ..= U+002F `! " # $ % & ' ( ) * + , - . /`, or
/// - U+003A ..= U+0040 `: ; < = > ? @`, or
Expand Down Expand Up @@ -2025,7 +2026,8 @@ impl char {
| matches!(*self, '{'..='~')
}

/// Checks if the value is an ASCII graphic character:
/// Checks if the value is an ASCII graphic character
/// (i.e. not whitespace or control):
/// U+0021 '!' ..= U+007E '~'.
///
/// # Examples
Expand Down
6 changes: 4 additions & 2 deletions library/core/src/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,8 @@ impl u8 {
matches!(*self, b'0'..=b'9') | matches!(*self, b'A'..=b'F') | matches!(*self, b'a'..=b'f')
}

/// Checks if the value is an ASCII punctuation character:
/// Checks if the value is an ASCII punctuation or symbol character
/// (i.e. not alphanumeric, whitespace, or control):
///
/// - U+0021 ..= U+002F `! " # $ % & ' ( ) * + , - . /`, or
/// - U+003A ..= U+0040 `: ; < = > ? @`, or
Expand Down Expand Up @@ -1027,7 +1028,8 @@ impl u8 {
| matches!(*self, b'{'..=b'~')
}

/// Checks if the value is an ASCII graphic character:
/// Checks if the value is an ASCII graphic character
/// (i.e. not whitespace or control):
/// U+0021 '!' ..= U+007E '~'.
///
/// # Examples
Expand Down
Loading