From b0bb8949f54f2f35189a4b27f5597acc599b6de5 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(+) (limited to 'include/SString.h') 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