summaryrefslogtreecommitdiffstats
path: root/qtools/scstring.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-12-24 11:05:13 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-12-24 11:05:13 (GMT)
commit939d1c84acd07060ee2b4bcbdc7dbccb80952385 (patch)
treef8b52ae17a2d8d346c9baa2998e36a5993a2eb12 /qtools/scstring.cpp
parentf1dfb258b6a6e29e267bcf2e5dcf77168af52cf3 (diff)
downloadDoxygen-939d1c84acd07060ee2b4bcbdc7dbccb80952385.zip
Doxygen-939d1c84acd07060ee2b4bcbdc7dbccb80952385.tar.gz
Doxygen-939d1c84acd07060ee2b4bcbdc7dbccb80952385.tar.bz2
Release-1.3.9.1-20041224
Diffstat (limited to 'qtools/scstring.cpp')
-rw-r--r--qtools/scstring.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qtools/scstring.cpp b/qtools/scstring.cpp
index a265afe..4a36755 100644
--- a/qtools/scstring.cpp
+++ b/qtools/scstring.cpp
@@ -151,7 +151,7 @@ SCString &SCString::sprintf( const char *format, ... )
int SCString::find( char c, int index, bool cs ) const
{
uint len = length();
- if ( m_data==0 || (uint)index>=len ) // index outside string
+ if ( m_data==0 || (uint)index>len ) // index outside string
return -1;
register const char *d;
if ( cs ) // case sensitive
@@ -173,7 +173,7 @@ int SCString::find( char c, int index, bool cs ) const
int SCString::find( const char *str, int index, bool cs ) const
{
uint l = length();
- if ( m_data==0 || (uint)index >= l ) // index outside string
+ if ( m_data==0 || (uint)index > l ) // index outside string
return -1;
if ( !str ) // no search string
return -1;
@@ -222,7 +222,7 @@ int SCString::findRev( char c, int index, bool cs) const
}
index = len;
}
- else if ( (uint)index >= len ) // bad index
+ else if ( (uint)index > len ) // bad index
{
return -1;
}
@@ -247,7 +247,7 @@ int SCString::findRev( const char *str, int index, bool cs) const
uint len = length();
if ( index < 0 ) // neg index ==> start from end
index = len-slen;
- else if ( (uint)index >= len ) // bad index
+ else if ( (uint)index > len ) // bad index
return -1;
else if ( (uint)(index + slen) > len ) // str would be too long
index = len - slen;