jstring changes

This commit is contained in:
Brad Arant committed 2023-03-08 13:54:42 -08:00
1 parent 8f8c14d7b2
commit f39bdc98f6
9 files changed
+92 -19

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
#!/bin/bash
g++ -o zstring_test zstring_test.cpp -I.. -L.. -lCoreUtils
g++ -o mstring_test mstring_test.cpp -I.. -L.. -lCoreUtils
g++ -o jstring_test jstring_test.cpp -I.. -L.. -lCoreUtils
Binary file not shown.
Binary file not shown.
+7
View File
@@ -32,4 +32,11 @@ int main(int argc, char **argv) {
coreutils::ZString test2("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
std::cout << "substring: [" << test2.substring(10) << "]" << std::endl;
// Test getContainer.
coreutils::ZString test4("test(this is a container (with a nesting))012345");
test4.getTokenExclude("(");
std::cout << "container: " << test4.getContainer() << std::endl;
std::cout << "rest: " << test4.unparsed() << std::endl;
}