Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
bool hormodular::ConfigParser::removeBadCharacters ( std::string &  string) [private]

Removes all the undesired characters, such as spaces and tabulations from a string.

Parameters:
stringString from which the undesired caracters will be removed
Returns:
True if the operation was successful, false otherwise
{
    string.erase( std::remove( string.begin(), string.end(), '\n'), string.end());
    string.erase( std::remove( string.begin(), string.end(), '\t'), string.end());
    string.erase( std::remove( string.begin(), string.end(), '\r'), string.end());

    return true;
}
 All Classes Functions Variables Friends