[swift-users] String view leaking

Alexandre Lopoukhine superlopuh at gmail.com
Wed Jan 13 12:23:58 CST 2016

Hello everyone,

I have a quick question that I haven’t found an answer to online. Do String.CharacterView, String.UTF8View, String.UTF16View or String.UnicodeView leak the original string? If I store lots of subranges of these, without keeping references to the original, will the originals remain in memory?

Thanks for your help.



More information about the swift-users mailing list