Changes to MString to add insert and remove methods.
This commit is contained in:
1 parent
88d51cb598
commit
8f8c14d7b2
6 files changed
+103
-1
No files matched your search
Binary file not shown.
@@ -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;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user