From 686ed62f519d66ac43315fb20dfb7233b839411d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 27 Jun 2007 19:57:23 +0000 Subject: Added more functions to fstring, now it has isSet and a bool cast operator. These allow you to see if there is anything set in the fstring. --- src/fstring.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/fstring.h b/src/fstring.h index fe34804..21a07ce 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -479,6 +479,16 @@ namespace Bu return pFirst->pData[nIndex]; } + operator bool() const + { + return (pFirst != NULL); + } + + bool isSet() const + { + return (pFirst != NULL); + } + /** * Is the character at index (nIndex) white space? *@param nIndex (long) The index of the character you want to check. -- cgit v1.2.3