Forum > LCL
[Solved] TStringList helper to do Find for PChar buffer
(1/1)
AlexTP:
In my app CudaText I can improve the parser speed if I can do TStringList.Find not for a string, but for a buffer (PChar pointer + length, not 0-terminated!).
Maybe this function or a class helper exists, somebody made it?
StringList is sorted.
marcov:
TStringlist is not allocated as continues block of memory, but as an array of string
AlexTP:
marcov,
I know it. And Find for PChar can be implemented.
AlexTP:
I wrote this code, it is here in the TStringList2 class:
https://github.com/Alexey-T/EControl/blob/master/econtrol/ec_strlist2.pas
Solved.
Navigation
[0] Message Index