aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-27 19:57:23 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-27 19:57:23 +0000
commit686ed62f519d66ac43315fb20dfb7233b839411d (patch)
tree6fbe9c6d89038a52bec6c5adbbbb34209d3c61f9 /src/fstring.h
parentc86c0cf088492e02431dffb1f860ff2f6faa492d (diff)
downloadlibbu++-686ed62f519d66ac43315fb20dfb7233b839411d.tar.gz
libbu++-686ed62f519d66ac43315fb20dfb7233b839411d.tar.bz2
libbu++-686ed62f519d66ac43315fb20dfb7233b839411d.tar.xz
libbu++-686ed62f519d66ac43315fb20dfb7233b839411d.zip
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.
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h10
1 files changed, 10 insertions, 0 deletions
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
479 return pFirst->pData[nIndex]; 479 return pFirst->pData[nIndex];
480 } 480 }
481 481
482 operator bool() const
483 {
484 return (pFirst != NULL);
485 }
486
487 bool isSet() const
488 {
489 return (pFirst != NULL);
490 }
491
482 /** 492 /**
483 * Is the character at index (nIndex) white space? 493 * Is the character at index (nIndex) white space?
484 *@param nIndex (long) The index of the character you want to check. 494 *@param nIndex (long) The index of the character you want to check.