Checks if string is empty or white-space only.
| 164 | |
| 165 | // Checks if string is empty or white-space only. |
| 166 | inline bool IsEmptyOrWhiteSpace(const std::string& str) |
| 167 | { |
| 168 | return std::find_if(str.begin(), str.end(), [](char ch) { return !IsSpace(ch); }) == str.end(); |
| 169 | } |
| 170 | |
| 171 | // Split a string content using an arbitrary separator. |
| 172 | inline StringVec Split(const std::string & str, char separator) |