changed getTokenExclude method to allow escaped characters.

This commit is contained in:
Brad Arant committed 2024-11-14 09:44:12 -08:00
1 parent c70f135710
commit 8f5dd52c6a
2 files changed
+13 -2

No files matched your search

+4
View File
@@ -111,5 +111,9 @@ int main(int argc, char **argv) {
coreutils::ZString test21("10.00000000");
std::cout << "Trailing Zeros: " << test21.removeTrailingZeros() << std::endl;
std::cout << " " << test21 << std::endl;
coreutils::ZString test22("This is a \\\"quoted\\\" string.\"");
std::cout << "quoted string: " << test22 << std::endl;
std::cout << "quoted string: " << test22.getTokenExclude("\"") << std::endl;
}