aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-11-01 20:55:46 +0000
committerMike Buland <eichlan@xagasoft.com>2007-11-01 20:55:46 +0000
commit72c44ec415ac3e2e4058a0104de28625101d5017 (patch)
treefa32564a6a3dfbe1c618d26e4e5214d238bb80a7 /src/fstring.h
parentda21dd5dc9cece281c83f3011eb9efbeb5ada45a (diff)
downloadlibbu++-72c44ec415ac3e2e4058a0104de28625101d5017.tar.gz
libbu++-72c44ec415ac3e2e4058a0104de28625101d5017.tar.bz2
libbu++-72c44ec415ac3e2e4058a0104de28625101d5017.tar.xz
libbu++-72c44ec415ac3e2e4058a0104de28625101d5017.zip
Just made some functions that are usable const labeled const so you can use them
in const objects :-P
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h6
1 files 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
622 *@param sText (const chr *) The string to search for. 622 *@param sText (const chr *) The string to search for.
623 *@returns (long) The index of the first occurrance. -1 for not found. 623 *@returns (long) The index of the first occurrance. -1 for not found.
624 */ 624 */
625 long find( const chr cChar ) 625 long find( const chr cChar ) const
626 { 626 {
627 flatten(); 627 flatten();
628 for( long j = 0; j < pFirst->nLength; j++ ) 628 for( long j = 0; j < pFirst->nLength; j++ )
@@ -638,7 +638,7 @@ namespace Bu
638 *@param cChar (const chr) The character to search for. 638 *@param cChar (const chr) The character to search for.
639 *@returns (long) The index of the first occurrance. -1 for not found. 639 *@returns (long) The index of the first occurrance. -1 for not found.
640 */ 640 */
641 long find( const chr *sText ) 641 long find( const chr *sText ) const
642 { 642 {
643 long nTLen = strlen( sText ); 643 long nTLen = strlen( sText );
644 flatten(); 644 flatten();
@@ -655,7 +655,7 @@ namespace Bu
655 *@param sText (const chr *) The string to search for. 655 *@param sText (const chr *) The string to search for.
656 *@returns (long) The index of the last occurrance. -1 for not found. 656 *@returns (long) The index of the last occurrance. -1 for not found.
657 */ 657 */
658 long rfind( const chr *sText ) 658 long rfind( const chr *sText ) const
659 { 659 {
660 long nTLen = strlen( sText ); 660 long nTLen = strlen( sText );
661 flatten(); 661 flatten();