/****************************************************************************** * This program illustrates some of the string functions in Utils * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #undef NDEBUG #include "Utils.hpp" #include #include using namespace Utils; using namespace std; static string const LTRSTR = " Spaces to the left"; static string const RTRSTR = "Spaces to the right "; static string const TRIMSTR = " Spaces at each end "; static string const BLANK = " \t\n "; static string const LOWERSTR = "This String is Lowercase"; static string const UPPERSTR = "This String is Uppercase"; int main(int argc, char **argv) { cout << '|' << Utils::ltrim(LTRSTR) << '|' << endl; cout << '|' << Utils::rtrim(RTRSTR) << '|' << endl; cout << '|' << Utils::trim(TRIMSTR) << '|' << endl; cout << '|' << Utils::trim(BLANK) << '|' << endl; cout << '|' << Utils::tolower(LOWERSTR) << '|' << endl; cout << '|' << Utils::toupper(UPPERSTR) << '|' << endl; return 0; }