From d79253e87306607a0985abaeba0b87242f3532b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 27 Jun 2007 21:58:51 +0000 Subject: More fstring stuff. --- src/fstring.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fstring.h b/src/fstring.h index 21a07ce..7180f5f 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -479,6 +479,13 @@ namespace Bu return pFirst->pData[nIndex]; } + operator const chr *() const + { + if( !pFirst ) return NULL; + flatten(); + return pFirst->pData; + } + operator bool() const { return (pFirst != NULL); -- cgit v1.2.3