StringJoiner: detect or fix delimiter collision?
mike.duigou at oracle.com
Tue Jul 23 20:09:12 UTC 2013
On Jul 23 2013, at 12:43 , ph wrote:
> didn't see delimiter collision mentioned anywhere - are you really offering
> an interface that only joins a list of entries without escaping or quoting
> or even checking for separators (or escape or quote sequences) that might
> occur in the entries?
Correct. StringJoiner makes no effort to address escaping/quoting. Doing so would add a lot of complexity that would not useful interesting to most users and probably still wouldn't satisfy everyone. If you wish some form of escaping or quoting you can pre-processed entries however you like before joining them.
More information about the core-libs-dev