When I'm trying
print(NSCharacterSet.URLQueryAllowedCharacterSet())
it prints
<__NSCFCharacterSet: 0x1759b900>
How do I make it more informative?
When I'm trying
print(NSCharacterSet.URLQueryAllowedCharacterSet())
it prints
<__NSCFCharacterSet: 0x1759b900>
How do I make it more informative?
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.