diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-24 11:05:13 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-12-24 11:05:13 (GMT) |
commit | 0e5fe1510853a0a05add1a9a25b3958893591328 (patch) | |
tree | f8b52ae17a2d8d346c9baa2998e36a5993a2eb12 /qtools | |
parent | 04a4eddbeaa2fef70fe87a790efabe074062fadf (diff) | |
download | Doxygen-0e5fe1510853a0a05add1a9a25b3958893591328.zip Doxygen-0e5fe1510853a0a05add1a9a25b3958893591328.tar.gz Doxygen-0e5fe1510853a0a05add1a9a25b3958893591328.tar.bz2 |
Release-1.3.9.1-20041224
Diffstat (limited to 'qtools')
-rw-r--r-- | qtools/scstring.cpp | 8 |
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; |