0

When I'm trying

print(NSCharacterSet.URLQueryAllowedCharacterSet())

it prints

<__NSCFCharacterSet: 0x1759b900>

How do I make it more informative?

Desmond Hume
  • 8,037
  • 14
  • 65
  • 112

1 Answers1

1

You can get a representation of the character set using bitmapRepresentation which could be queried. Or you could do basically the same thing with a loop over all characters and using characterIsMember:. The output is potentially big...

There isn't really a simple option or a generic concise output to what you're asking for. It isn't a common requirement.

Wain
  • 118,658
  • 15
  • 128
  • 151