Changes to MString to add insert and remove methods.

This commit is contained in:
Brad Arant committed 2023-01-05 11:51:20 -08:00
1 parent 88d51cb598
commit 8f8c14d7b2
6 files changed
+103 -1

No files matched your search

+10
View File
@@ -30,6 +30,16 @@ int main(int argc, char **argv) {
test6 << "Will this work? " << number << test4 << " See how this works.";
std::cout << "streaming: [" << test6 << "]." << std::endl;
coreutils::MString test9("XXXXXXXXXYYYYYYYYYY");
std::cout << "test insert: " << test9 << std::endl;
coreutils::MString test8("zzz");
test9.insert(test8, 9);
std::cout << "inserting: " << test9 << std::endl;
test9.insert("aaaaa", 9);
std::cout << "inserting: " << test9 << std::endl;
test9.remove(10, 7);
std::cout << "removing: " << test9 << std::endl;
return 0;
}