Created destructive removeTrailingZeros() method on ZString.

This commit is contained in:
Brad Arant committed 2024-11-04 16:26:40 -08:00
1 parent faa794cf6b
commit bf4ff3fdac
3 files changed
+20 -1

No files matched your search

+4
View File
@@ -107,5 +107,9 @@ int main(int argc, char **argv) {
coreutils::ZString test20(NULL);
std::cout << "[" << test20 << "]" << std::endl;
std::cout << "Comparisons with null value: " << (test20 == "true") << std::endl;
coreutils::ZString test21("10.00000000");
std::cout << "Trailing Zeros: " << test21.removeTrailingZeros() << std::endl;
std::cout << " " << test21 << std::endl;
}