diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-27 21:58:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-27 21:58:51 +0000 |
commit | d79253e87306607a0985abaeba0b87242f3532b7 (patch) | |
tree | 2e1ba03883364fff7b046d95f8bcecdda3a027d6 /src | |
parent | 686ed62f519d66ac43315fb20dfb7233b839411d (diff) | |
download | libbu++-d79253e87306607a0985abaeba0b87242f3532b7.tar.gz libbu++-d79253e87306607a0985abaeba0b87242f3532b7.tar.bz2 libbu++-d79253e87306607a0985abaeba0b87242f3532b7.tar.xz libbu++-d79253e87306607a0985abaeba0b87242f3532b7.zip |
More fstring stuff.
Diffstat (limited to 'src')
-rw-r--r-- | src/fstring.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 | |||
479 | return pFirst->pData[nIndex]; | 479 | return pFirst->pData[nIndex]; |
480 | } | 480 | } |
481 | 481 | ||
482 | operator const chr *() const | ||
483 | { | ||
484 | if( !pFirst ) return NULL; | ||
485 | flatten(); | ||
486 | return pFirst->pData; | ||
487 | } | ||
488 | |||
482 | operator bool() const | 489 | operator bool() const |
483 | { | 490 | { |
484 | return (pFirst != NULL); | 491 | return (pFirst != NULL); |