Skip to content

Add ctype-likes to Ascii #10611

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

Merged
merged 1 commit into from
Nov 24, 2013
Merged

Add ctype-likes to Ascii #10611

merged 1 commit into from
Nov 24, 2013

Conversation

emberian
Copy link
Member

These are super boring. I can add tests if really desired, but they'd be long
and even more boring than the methods.

/// Check if the character is a letter (a-z, A-Z)
#[inline]
pub fn is_alpha(&self) -> bool {
(self.chr >= 0x41 && self.char <= 0x5A) || (self.chr >= 0x61 && self.chr <= 0x7A)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/char/chr/

bors added a commit that referenced this pull request Nov 23, 2013
These are super boring. I can add tests if really desired, but they'd be long
and even more boring than the methods.
@bors bors closed this Nov 24, 2013
@bors bors merged commit 09af9d4 into rust-lang:master Nov 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants