0
votes
Vote UpVote

Whole Word Search Function in Delphi

The Road to Delphi – To search a whole word in a string, you can use the SearchBuf function declarated in the StrUtils.pas unit . function SearchBuf(Buf: PAnsiChar; BufLen: Integer; SelStart: Integer; SelLength: Integer; SearchString: AnsiString; Options: TStringSearchOptions): PAnsiChar; overload; Buf is the text buffer to search. BufLen is the length, in bytes, of Buf. SelStart is the first character of the search when Options indicates a backward search (does not include soDown). The first character in Buf has position 0. SelLength is the number of characters after SelStart that the search begins when ...
Favorite? Off-Topic? Rodrigo @ 2009-11-05 15:09

Statistics

Visits: 80
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)