Completed cosing of substring.
This commit is contained in:
1 parent
39fd88cad9
commit
a1cc142a59
2 files changed
+13
-1
No files matched your search
@@ -85,6 +85,11 @@ int main(int argc, char **argv) {
|
||||
coreutils::ZString test14("25.5");
|
||||
coreutils::ZString test15("xyx");
|
||||
std::cout << test14.startsWithDouble() << ":" << test15.startsWithDouble() << std::endl;
|
||||
|
||||
|
||||
coreutils::ZString test16("This is a test of substring");
|
||||
std::cout << test16.substring(10) << std::endl;
|
||||
std::cout << test16.substring(10, 4) << std::endl;
|
||||
std::cout << test16.substring(0, 7) << std::endl;
|
||||
std::cout << test16.substring(18, 20) << std::endl;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user