Add trim to ZString.

This commit is contained in:
Brad Arant committed 2024-09-24 11:14:58 -07:00
1 parent a1cc142a59
commit d7ef47cd49
3 files changed
+15 -1

No files matched your search

+3
View File
@@ -91,5 +91,8 @@ int main(int argc, char **argv) {
std::cout << test16.substring(10, 4) << std::endl;
std::cout << test16.substring(0, 7) << std::endl;
std::cout << test16.substring(18, 20) << std::endl;
coreutils::ZString test17(" hello there ");
std::cout << "[" << test17.trim() << "]" << std::endl;
}