Skip to content

Swap definitions of isWhitespace and isSpace #27

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

Closed
wants to merge 1 commit into from
Closed
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
12 changes: 6 additions & 6 deletions api/WCharacter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ inline bool isAscii(int c)
}


// Checks for a blank character, that is, a space or a tab.
// Checks for white-space characters. For the avr-libc library,
// these are: space, formfeed ('\f'), newline ('\n'), carriage
// return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
inline bool isWhitespace(int c)
{
return ( isblank (c) == 0 ? false : true);
return ( isspace (c) == 0 ? false : true);
}


Expand Down Expand Up @@ -115,12 +117,10 @@ inline bool isPunct(int c)
}


// Checks for white-space characters. For the avr-libc library,
// these are: space, formfeed ('\f'), newline ('\n'), carriage
// return ('\r'), horizontal tab ('\t'), and vertical tab ('\v').
// Checks for a blank character, that is, a space or a tab.
inline bool isSpace(int c)
{
return ( isspace (c) == 0 ? false : true);
return ( isblank (c) == 0 ? false : true);
}


Expand Down