[fpc-pascal] ExtractStrings skips empty string parts?
silvioprog
silvioprog at gmail.com
Tue Jan 28 18:13:39 CET 2014
2014-01-28 Michael Van Canneyt <michael at freepascal.org>
>
> 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.
Tested and worked perfectly. Nice job! :)
--
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140128/1823d5be/attachment.html>
More information about the fpc-pascal
mailing list