diff --git a/MString.cpp b/MString.cpp index 8b11859..4968ab1 100644 --- a/MString.cpp +++ b/MString.cpp @@ -9,6 +9,7 @@ #include #include #include +#include namespace coreutils { @@ -377,12 +378,16 @@ namespace coreutils { MString MString::toUpper() { MString target; + for(int ix = 0; ix < length; ++ix) + write(std::toupper(data[ix])); return target; } MString MString::toLower() { MString target; + for(int ix = 0; ix < length; ++ix) + write(std::tolower(data[ix])); return target; }