theroadtodelphi.com
Whole Word Search Function in Delphi
To search a whole word in a string, you can use the SearchBuf function declarated in the StrUtils.pas unit . Buf is the text buffer to search. BufLen is the length, in chars, of Buf. SelStart is th…