Added substring capability to ZString.
This commit is contained in:
1 parent
36348aba17
commit
d0d5172afa
5 files changed
+69
-6
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -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;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user