[Lazarus] Splitting a sentence into words??!

Reinier Olislagers reinierolislagers at gmail.com
Wed Jun 27 17:09:19 CEST 2012

On 27-6-2012 16:59, michael.vancanneyt at wisa.be wrote:
> On Wed, 27 Jun 2012, Reinier Olislagers wrote:
>> Splitting a string with a sentence into words shouldn't be hard,
>> should it?
> See the strutils unit.
> WordCount, ExtractWord:
> http://www.freepascal.org/docs-html/rtl/strutils/extractword.html
> http://www.freepascal.org/docs-html/rtl/strutils/wordcount.html
> They can be used to create the functions you want.
Thanks, Lukasz & Michael.

The wordcount/extractword route seems a bit more elegant.

I was a bit leary of trying the stringlist route (e.g. bug 19610 has not
filled me with confidence, but perhaps that is misplaced). I could also
try that.

Thanks again,

More information about the Lazarus mailing list