summaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
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.