empiredan commented on code in PR #1870:
URL: 
https://github.com/apache/incubator-pegasus/pull/1870#discussion_r1464778167


##########
src/utils/strings.cpp:
##########
@@ -424,5 +425,11 @@ std::string find_string_prefix(const std::string &input, 
char separator)
     }
     return input.substr(0, current);
 }
+
+bool has_space(const std::string &str)
+{
+    return std::any_of(str.begin(), str.end(), [](unsigned char c) { return 
std::isspace(c); });

Review Comment:
   OK, once this function could be used, no need to use lambda expression to 
wrap `std::isspace`. I'll try it. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to