algorithm icon indicating copy to clipboard operation
algorithm copied to clipboard

Add is_blank() string functor classification

Open glywk opened this issue 2 years ago • 3 comments

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 avatar Jan 20 '23 23:01 glywk

@mclow

glywk avatar Jul 26 '23 23:07 glywk

@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 avatar Jul 27 '23 21:07 glywk

Is something miss?

glywk avatar Nov 10 '23 00:11 glywk