Function hasSpaceBetweenWords(const std::string&)ο
Defined in File checkFun.h
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.