aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fbasicstring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fbasicstring.h b/src/fbasicstring.h
index 5271b62..c885cbb 100644
--- a/src/fbasicstring.h
+++ b/src/fbasicstring.h
@@ -1859,6 +1859,14 @@ namespace Bu
1859 core->appendChunk( pNew ); 1859 core->appendChunk( pNew );
1860 } 1860 }
1861 1861
1862 void trimBack( chr c )
1863 {
1864 if( core->pFirst == NULL )
1865 return;
1866 flatten();
1867 for( ; core->pFirst->nLength > 0 && core->pFirst->pData[core->pFirst->nLength-1] == c; core->pFirst->nLength--, core->nLength-- ) { }
1868 }
1869
1862 void format( const char *sFrmt, ...) 1870 void format( const char *sFrmt, ...)
1863 { 1871 {
1864 _hardCopy(); 1872 _hardCopy();