Added substring capability to ZString.

This commit is contained in:
Brad Arant committed 2022-08-07 17:21:37 -07:00
1 parent 36348aba17
commit d0d5172afa
5 files changed
+69 -6

No files matched your search

+5
View File
@@ -22,4 +22,9 @@ int main(int argc, char **argv) {
for(int ix = 0; ix < test.getList().size(); ++ix)
std::cout << ix << ":" << test[ix] << std::endl;
// Test substring operations.
coreutils::ZString test2("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
std::cout << "substring: [" << test2.substring(10) << "]" << std::endl;
}