bethyw.cpp
/*
    Covert string into a string with only lower case letters

  @param string
    std::string

  @return
    std::string

  @example
    std::string message = "YoU WaNT TO gIVe me FuLL MaRKs";
    std::string newMessage = BethYw::convertToLower(message);
    (newMessage == "you want to give me full marks) == ture;
 */
Covert string into a string with only lower case letters
Covert string into a string with only lower case letters
std::string BethYw::convertToLower(const std::string string) {
    std::string lower = "";
    for (unsigned i = 0; i < string.size(); i++)
        lower += std::tolower(string[i]);
    return lower;
}
std :: string BethYw :: convertToLower ( const std :: string string ) { std :: string lower = " " ; for ( unsigned i = 0 ; i < string . size ( ) ; i ++ ) lower += std :: tolower ( string [ i ] ) ; return lower ; }
Covert string into a string with only lower case letters
Covert string into a string with only lower case letters