Most efficient S2I and I2S?

tooltiperror

Super Moderator
Reaction score
231
What would be the most efficient way to get a string to become an integer, and an integer to a string?

I was thinking to take a string like [LJASS]"hrieoanf"[/LJASS], get the ASCII value of each character then concentrate it together as a string and then finally turn it into an integer, but I figured JASS Help may have a better solution. Not to mention the reverse, taking the ASCII and getting a string may be a bit tricky.
 
Reaction score
456
StringHash?

EDIT//: Well that doesn't help with I2S part. But I guess you can get it out of the integer.. somehow..
 

DioD

New Member
Reaction score
57
you will have 4 chars limit conversion (since it will hit 32 bit limit) (8bit 8bit 8bit 8bit) ever if you ignore every unused char, ignore char case, you wont have more then 16 chars at once.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top