[swift-users] \r\n is one Character
Darren Mo
darren.mo at me.com
Thu Jan 28 13:06:18 CST 2016
Thanks, Joe. Found it at http://www.unicode.org/reports/tr29/#GB3.
> On Jan 28, 2016, at 1:56 PM, Joe Groff <jgroff at apple.com> wrote:
>
>
>> On Jan 27, 2016, at 7:52 PM, Darren Mo via swift-users <swift-users at swift.org> wrote:
>>
>> "\r\n" is a single Character. Is this the correct behaviour?
>
> Yes, a Character corresponds to a Unicode grapheme cluster, and "\r\n" is considered a single grapheme cluster.
>
> -Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160128/cca45e1c/attachment.html>
More information about the swift-users
mailing list