TStrings.Strictdelimiter does read quoted delimiters
Original Reporter info from Mantis: BigChimp
-
Reporter name: Reinier Olislagers
Original Reporter info from Mantis: BigChimp
- Reporter name: Reinier Olislagers
Description:
Current help incorrectly states:
When &LtPos;var>StrictDelimiter&LtPos;/var> is set to
&LtPos;var>True&LtPos;/var> then only the &LtPos;link id="TStrings.Delimiter">Delimiter&LtPos;/link>
character is considered when splitting the text in items: no quoting
whatsoever is performed (or expected) when writing the
&LtPos;var>DelimitedText&LtPos;/var> property.
Similar description in TStrings.DelimitedText
Delphi reads quoted strings containing delimiters correctly. Once implemented, the patch in 19610 does the same.
See tw19610.pp, e.g. test Get_StrictDelimTrue,
"quoted;delimiter"
gets read as
quoted;delimiter
Patch attached
Additional information:
Although Delphi help on Strictdelimiter
http://docwiki.embarcadero.com/Libraries/en/System.Classes.TStrings.StrictDelimiter
does not mention this, it is mentioned (at least for spaces) in
http://docwiki.embarcadero.com/Libraries/en/System.Classes.TStrings.DelimitedText
tw19610.pp in bug 19610 confirms other quoting behaviour in Delphi.
Depends on fix for bug 19610 being implemented.
Mantis conversion info:
- Mantis ID: 22939
- OS: Windows
- OS Build: Vista
- Platform: x64 (with x86 compiler)
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 947 (#dd0f0232)