jed_fox1’s avatarjed_fox1’s Twitter Archive — № 837

    1. …in reply to @simonbs
      @simonbs String.Index(idx, within: str.utf16)
  1. …in reply to @jed_fox1
    @simonbs or idx.utf16Offset(in: str) To make idx, it looks like you can do str.index(str.startIndex, offsetBy: 42)