[fpc-pascal] ExtractStrings skips empty string parts?

Michael Van Canneyt michael at freepascal.org
Tue Jan 28 09:41:54 CET 2014



On Mon, 27 Jan 2014, silvioprog wrote:

> 2014-01-27 Michael Van Canneyt <michael at freepascal.org>
>       On Mon, 27 Jan 2014, silvioprog wrote:
>             2014-01-26 Michael Van Canneyt <michael at freepascal.org>
>                   On Sun, 26 Jan 2014, silvioprog wrote:
>                         Hello,
>
>                         Conforms issue #16043:
>
>                         "ExtractStrings in the Classes unit skips over empty text. For example:
> 
>
>             Yes. This is delphi compatible.
>
>             The only possibility is to add a new argument ExtractEmpty : Boolean = False;
>             which would, when set to true, also extract empty values.
>
>             Michael.
> 
>
>             It would be a nice idea an new argument or an overloaded function. Could use the
>             StrictDelimiter name, to maintain
>             compatibility with the already used name in TStrings. :)
> 
> 
> Sure. Feel free to supply a patch.
> Michael.
> 
> 
> Done: http://bugs.freepascal.org/view.php?id=25633.

Solved, but I did it with a new argument. Try to avoid code duplication...

Michael.


More information about the fpc-pascal mailing list