nscharacterset - how to print characterSet in objective c? -


i'm using gnustep shell programming objective-c. i'm able convert string character set. unable print converted character set in console. please tell me way print it. in advance.

this first 65536 characters in unicode, situations. believe unicode can go higher (2^32?), take longer log.

+ (void) logcharacterset:(nscharacterset*)characterset {     unichar unicharbuffer[20];     int index = 0;      (unichar uc = 0; uc < (0xffff); uc ++)     {         if ([characterset characterismember:uc])         {             unicharbuffer[index] = uc;              index ++;              if (index == 20)             {                 nsstring * characters = [nsstring stringwithcharacters:unicharbuffer length:index];                 nslog(@"%@", characters);                  index = 0;             }         }     }      if (index != 0)     {         nsstring * characters = [nsstring stringwithcharacters:unicharbuffer length:index];         nslog(@"%@", characters);     } } 

there quite fun looking results, example here sample of 20 characters punctuationcharacterset.

༅༆༇༈༉༊་༌།༎༏༐༑༒༔༺༻༼༽྅


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -