[swift-users] \r\n is one Character

Joe Groff jgroff at apple.com
Thu Jan 28 12:56:57 CST 2016

> 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160128/fd5408fd/attachment.html>

More information about the swift-users mailing list