Delphi 6: How to search a dynamic array for sub-string quickly?
Posted
by Robert Oschler
on Stack Overflow
See other posts from Stack Overflow
or by Robert Oschler
Published on 2010-05-30T03:36:50Z
Indexed on
2010/05/30
3:42 UTC
Read the original article
Hit count: 237
How can I search a dynamic array of char in Delphi 6 for a sub-string and get back an index to a match, not a pointer? I've seen functions in Delphi 6 that do this for strings but not for dynamic char arrays. There is a function called SearchBuf but that function returns a PChar pointer to the match location when what I need is the array index of the match.
Thanks.
© Stack Overflow or respective owner