Function checkBool(const std::string&)

Function Documentation

bool checkBool(const std::string &input)

Checks if a given string is a valid representation of a boolean value.

Parameters:

input – A string input representing a boolean.

Returns:

Returns true if the string is ‘true’, ‘false’, ‘0’, or ‘1’ (case-insensitive), false otherwise.