aboutsummaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-04-16 23:04:35 +0000
committerMike Buland <eichlan@xagasoft.com>2009-04-16 23:04:35 +0000
commit44057a75ef001bfd1919e2169ec3f7f355d14c20 (patch)
tree61cc7fe3ea5d54a24197a33bd7ec87edc5d8233b /src/fbasicstring.h
parent900bf84c403caf83e18928b066544f402aae1122 (diff)
downloadlibbu++-44057a75ef001bfd1919e2169ec3f7f355d14c20.tar.gz
libbu++-44057a75ef001bfd1919e2169ec3f7f355d14c20.tar.bz2
libbu++-44057a75ef001bfd1919e2169ec3f7f355d14c20.tar.xz
libbu++-44057a75ef001bfd1919e2169ec3f7f355d14c20.zip
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.
Diffstat (limited to 'src/fbasicstring.h')
-rw-r--r--src/fbasicstring.h32
1 files changed, 32 insertions, 0 deletions
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
1297 return !(*this == pData); 1297 return !(*this == pData);
1298 } 1298 }
1299 1299
1300 bool operator<(const MyType &pData ) const
1301 {
1302 flatten();
1303 pData.flatten();
1304
1305 const chr *a = pData.pFirst->pData;
1306 chr *b = pFirst->pData;
1307 for( long j = 0; j < nLength; j++, a++, b++ )
1308 {
1309 if( *a != *b )
1310 return *a < *b;
1311 }
1312
1313 return false;
1314 }
1315
1316 bool operator>(const MyType &pData ) const
1317 {
1318 flatten();
1319 pData.flatten();
1320
1321 const chr *a = pData.pFirst->pData;
1322 chr *b = pFirst->pData;
1323 for( long j = 0; j < nLength; j++, a++, b++ )
1324 {
1325 if( *a != *b )
1326 return *a > *b;
1327 }
1328
1329 return false;
1330 }
1331
1300 /** 1332 /**
1301 * Indexing operator 1333 * Indexing operator
1302 *@param nIndex (long) The index of the character you want. 1334 *@param nIndex (long) The index of the character you want.