Strings in Swift 4

It is false.

:woman_zombie: is:

  • 1 grapheme (Swift's Character)
  • 4 scalars (Swifts Unicode.Scalar):
    • U+1F9DF, U+200D, U+2640, U+FE0F
  • 5 UTF-16 code units (Swift's String.UTF16View.Element):
    • D83E DDDF 200D 0020 2640
  • 11 UTF-8 code units (Swift's String.UTF8View.Element):
    • F0 9F A7 9F E2 80 8D 20 E2 99 80

edit: Bah, Discourse doesn't have support for the latest emoji! This cannot stand! For reference, here is the emoji: 🧟‍♀️ Woman Zombie Emoji

1 Like