Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 11:55 AM, Michael Van Canneyt wrote: > >> Thanks. >> But, is uregexp part of FPC? > > > Not yet, but I intend to make it so. All right! Thanks. Marcos Douglas PS. Please, don't forget the XPath Unicode implementation too. We have talked about it months ago... but I can im

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote: On Tue, Jul 3, 2018 at 10:26 AM, Michael Van Canneyt wrote: On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote: On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt wrote: On Tue, 3 Jul 2018, Marco van de Voort wrote: Trivial indeed,

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 10:26 AM, Michael Van Canneyt wrote: > > > On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote: > >> On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt >> wrote: >>> >>> >>> On Tue, 3 Jul 2018, Marco van de Voort wrote: >>> Trivial indeed, till you need more fine-grained co

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote: On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt wrote: On Tue, 3 Jul 2018, Marco van de Voort wrote: Trivial indeed, till you need more fine-grained control. e.g. C needs to be an array of chars that mark word boundaries etc. But I ma

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marcos Douglas B. Santos
On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt wrote: > > On Tue, 3 Jul 2018, Marco van de Voort wrote: > Trivial indeed, till you need more fine-grained control. > e.g. C needs to be an array of chars that mark word boundaries etc. > > But I managed to solve the problem with regexps... How?

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
On Tue, 3 Jul 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: > In our previous episode, Michael Van Canneyt said: >> >> What's the easiest way to split a stream into words ? > > Doesn't strutils have some word extraction and count functions? It does: Wo

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > > In our previous episode, Michael Van Canneyt said: > >> > >> What's the easiest way to split a stream into words ? > > > > Doesn't strutils have some word extraction and count functions? > > It does: WordCount,ExtractWord, but they are ver

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
On Tue, 3 Jul 2018, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: What's the easiest way to split a stream into words ? Doesn't strutils have some word extraction and count functions? It does: WordCount,ExtractWord, but they are very inefficent. Michael. _

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > What's the easiest way to split a stream into words ? Doesn't strutils have some word extraction and count functions? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
On Tue, 3 Jul 2018, Michael Van Canneyt wrote: Hi, What's the easiest way to split a stream into words ? Words are just that: words, but - here is the caveat - they must support unicode. So Michael and Michaël are both words. Tried regexpr unit (the obvious choice), but that does not seem

[fpc-pascal] Split stream into words

2018-07-03 Thread Michael Van Canneyt
Hi, What's the easiest way to split a stream into words ? Words are just that: words, but - here is the caveat - they must support unicode. So Michael and Michaël are both words. Tried regexpr unit (the obvious choice), but that does not seem to do the trick: {$mode objfpc} {$H+} uses cwstrin