Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

range

  1. S

    Convert a given UTF8 NSRange in a string to a UTF16 NSRange

    Converting any given UTF8 NSRange in a string to a UTF16 NSRange Examples: let str = #"let 🎁🇵🇷 = "hello world""# //The UTF8 NSRange of 🎁🇵🇷 is: {4, 12} //The UTF16 NSRange of 🎁🇵🇷 is: {4, 6} //The UTF8 NSRange of let 🎁🇵🇷 is: {0, 16} //The UTF16 NSRange of let 🎁🇵🇷 is: {0, 10} Testing count...
Top