azrafe7

Haxe charCodeAt/fromCharCode

Nov 21st, 2013
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //                              FLASH     NEKO      CPP
  2. trace("╝".charCodeAt(0));             //   9565      226      226
  3. trace(StringTools.fastCodeAt("╝", 0));            //   9565      226      226
  4. trace(Utf8.charCodeAt("╝", 0));               //   9565     9565     9565
  5. trace(Bytes.ofString("╝").toHex());           //     e2959d   e2959d   e2959d
  6. trace(String.fromCharCode(Utf8.charCodeAt("╝", 0)));  //      ╝        ]        ]
  7. trace(String.fromCharCode(9565));           //      ╝        ]        ]
  8. trace(Bytes.ofString("╝").toString());            //      ╝       â•       ╝
Advertisement
Add Comment
Please, Sign In to add comment