From 8bf069357efca443fda0038fbff2d1aef2301bc5 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 11 Oct 2001 10:33:08 +0000 Subject: Added a remove(string) method which is substitute(string, ""). --- include/SString.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/SString.h b/include/SString.h index 64f702b66..6ae65806a 100644 --- a/include/SString.h +++ b/include/SString.h @@ -299,6 +299,9 @@ public: posFound = search(sFind, posFound + lenReplace); } } + void remove(const char *sFind) { + substitute(sFind, ""); + } }; #endif -- cgit v1.2.3