Skip to content
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

Add is_blank() string functor classification #112

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

glywk
Copy link

@glywk glywk commented Jan 20, 2023

In string algorithm, is_blank standard classification exists since C++11. Today, this classification is not provided by this library for code.
I have added is_blank functor in the implementation compiled with standard upper or equals to c++11 and complete the documentation.

@glywk
Copy link
Author

glywk commented Jul 26, 2023

@mclow

@glywk
Copy link
Author

glywk commented Jul 27, 2023

@mclow as suggested, I have add a negative is_blank() predicate test case. It checks that:

  • first, any of chars are not blanks. '\n','\v','\f','\r' are classified as spaces characters as describe in std::isblank
  • second, not all chars are blanks. (ie. 'a','x')

@glywk
Copy link
Author

glywk commented Nov 10, 2023

Is something miss?

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.

2 participants