From 72c44ec415ac3e2e4058a0104de28625101d5017 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 1 Nov 2007 20:55:46 +0000 Subject: Just made some functions that are usable const labeled const so you can use them in const objects :-P --- src/fstring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fstring.h b/src/fstring.h index c324e4a..de34cb0 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -622,7 +622,7 @@ namespace Bu *@param sText (const chr *) The string to search for. *@returns (long) The index of the first occurrance. -1 for not found. */ - long find( const chr cChar ) + long find( const chr cChar ) const { flatten(); for( long j = 0; j < pFirst->nLength; j++ ) @@ -638,7 +638,7 @@ namespace Bu *@param cChar (const chr) The character to search for. *@returns (long) The index of the first occurrance. -1 for not found. */ - long find( const chr *sText ) + long find( const chr *sText ) const { long nTLen = strlen( sText ); flatten(); @@ -655,7 +655,7 @@ namespace Bu *@param sText (const chr *) The string to search for. *@returns (long) The index of the last occurrance. -1 for not found. */ - long rfind( const chr *sText ) + long rfind( const chr *sText ) const { long nTLen = strlen( sText ); flatten(); -- cgit v1.2.3