Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Swap and correct the documentation of isSpace() and isWhitespace() #595

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
robsoncouto merged 1 commit into arduino:master from per1234:swap-isspace-iswhitespace-documentation
May 17, 2019
Merged

Swap and correct the documentation of isSpace() and isWhitespace() #595

robsoncouto merged 1 commit into arduino:master from per1234:swap-isspace-iswhitespace-documentation
May 17, 2019

Conversation

Copy link
Collaborator

@per1234 per1234 commented May 7, 2019

Although the documentation previously matched what you might expect these functions to do based on their names, the actual behavior of the functions is the reverse. In addition to this, isWhitespace() matches on horizontal tab as well as space, which was not mentioned in the isSpace() documentation. The decision was made to leave the long established implementation of the functions as-is to avoid causing breakage and to instead correct the documentation to match the actual behavior of the functions.

References:

Fixes arduino/Arduino#7041

Although the documentation previously matched what you might expect these functions to do based on their names, the actual behavior of the functions is the reverse. In addition to this, isWhitespace() matches on horizontal tab as well as space, which was not mentioned in the isSpace() documentation. The decision was made to leave the implementation of the functions as-is to avoid causing breakage and to correct the documentation to match the actual behavior of the functions.
More information:
arduino/ArduinoCore-API#27 
@robsoncouto robsoncouto merged commit 8370cea into arduino:master May 17, 2019
Copy link
Contributor

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[BUG] isWhitespace() / isSpace()

AltStyle によって変換されたページ (->オリジナル) /