Function hasSpaceBetweenWords(const std::string&)
Defined in File checkFun.cpp
Function Documentation
-
bool hasSpaceBetweenWords(const std::string &str)
Checks if a string contains a space between words.
Iterates through the string to find spaces. A space is considered between words if it’s not at the start or end of the string and is surrounded by non-space characters. Returns true if such a space is found.
- Parameters:
str – The string to check.
- Returns:
True if a space is found between words.
- Returns:
False if no space is found between words.