summaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h
index 2f508b7..c3ab6cd 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -143,6 +143,29 @@ public:
143 nLength = nNewSize; 143 nLength = nNewSize;
144 } 144 }
145 145
146 long getSize()
147 {
148 return nLength;
149 }
150
151 chr *getStr()
152 {
153 if( pFirst == NULL )
154 return NULL;
155
156 flatten();
157 return pFirst->pData;
158 }
159
160 const chr *getStr() const
161 {
162 if( pFirst == NULL )
163 return NULL;
164
165 flatten();
166 return pFirst->pData;
167 }
168
146 chr *c_str() 169 chr *c_str()
147 { 170 {
148 if( pFirst == NULL ) 171 if( pFirst == NULL )