Da du innerhalb der Strings suchen willst, macht sortiert oder unsortiert keinen Unterschied.
Zitat:
- jeder Treffer muss in eine Listbox "landen"
Ich befürchte auch, das hier eher ein größerer Flaschenhals entsteht, als daß das Suchverfahren (Pos, Boyer-Moore und Co.) seine Auswirkungen zeigt.
In D2007 dürfte doch auch schon das bessere "Pos" aus dem FastCodeProjekt enthalten sein,
oder wurde FastCode erst in D2009 integriert?
schau einfach mal, ob sowas in deinem Delphi drinnen ist.
Delphi-Quellcode:
(* ***** BEGIN LICENSE BLOCK *****
*
* The function Pos is licensed under the CodeGear license terms.
*
* The initial developer of the original code is Fastcode
*
* Portions created by the initial developer are Copyright (C) 2002-2004
* the initial developer. All Rights Reserved.
*
* Contributor(s): Aleksandr Sharahov
*
* ***** END LICENSE BLOCK ***** *)
function Pos(
const substr, str: RawByteString): Integer;
overload;
asm
push ebx