From 44057a75ef001bfd1919e2169ec3f7f355d14c20 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 16 Apr 2009 23:04:35 +0000 Subject: Hey, the list code is better, also, I fixed some stuff in socket (the isBlocking function was backward), and fastcgi is actually working now! Also added comparison functions to FString. --- src/fbasicstring.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/fbasicstring.h') diff --git a/src/fbasicstring.h b/src/fbasicstring.h index 853625c..57e798e 100644 --- a/src/fbasicstring.h +++ b/src/fbasicstring.h @@ -1297,6 +1297,38 @@ namespace Bu return !(*this == pData); } + bool operator<(const MyType &pData ) const + { + flatten(); + pData.flatten(); + + const chr *a = pData.pFirst->pData; + chr *b = pFirst->pData; + for( long j = 0; j < nLength; j++, a++, b++ ) + { + if( *a != *b ) + return *a < *b; + } + + return false; + } + + bool operator>(const MyType &pData ) const + { + flatten(); + pData.flatten(); + + const chr *a = pData.pFirst->pData; + chr *b = pFirst->pData; + for( long j = 0; j < nLength; j++, a++, b++ ) + { + if( *a != *b ) + return *a > *b; + } + + return false; + } + /** * Indexing operator *@param nIndex (long) The index of the character you want. -- cgit v1.2.3