[fpc-pascal] Split stream into words

Michael Van Canneyt michael at freepascal.org
Tue Jul 3 16:55:25 CEST 2018



On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote:

> On Tue, Jul 3, 2018 at 10:26 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>>
>>
>> On Tue, 3 Jul 2018, Marcos Douglas B. Santos wrote:
>>
>>> On Tue, Jul 3, 2018 at 7:50 AM, Michael Van Canneyt
>>> <michael at freepascal.org> 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?
>>
>>
>> I misunderstood how Split works. The regex is the 'word separator' in that
>> function.
>>
>> The following correctly gives me all words. unit uregexp is the regexp unit
>> compiled for unicode.
>
> Thanks.
> But, is uregexp part of FPC?

Not yet, but I intend to make it so.

Michael.



More information about the fpc-pascal mailing list