[Solved] TStringList helper to do Find for PChar buffer lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2021-07-20 15:27 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 · 2021-07-20 15:36 TStringlist is not allocated as continues block of memory, but as an array of string ---------------------------------------------------------------------- AlexTP · 2021-07-20 16:00 marcov, I know it. And Find for PChar can be implemented. ---------------------------------------------------------------------- AlexTP · 2021-07-20 21:41 I wrote this code, it is here in the TStringList2 class: https://github.com/Alexey- T/EControl/blob/master/econtrol/ec_strlist2.pas Solved.