Mod:Lighthouse Papyrus Extender/String

String Functions
{| style="width:100%;"
 * valign="top" style="width: 85%;" |

HexToInt

 * Converts a hex string to an integer

int Function HexToInt(string hexString) global native

IntToBin

 * Converts an integer to binary, with the optional  parameter to prefix   to the output
 * allows to choose how many leading zeros are present, but is capped at 32 i.e.

string Function IntToBin(int numToConvert, int binWidth = 1, bool addPrefix = false) global native

IntToHex

 * Converts an integer to hex, with the optional  parameter to prefix   to the output
 * allows to choose how many leading zeros are present, but is capped at 8 i.e.

string Function IntToHex(int numToConvert, int hexWidth = 1, bool addPrefix = false) global native

StringToInt

 * Extracts integers from a string e.g.  will be returned as

int Function StringToInt(string intString) global native


 * valign="top" style="width: 15%;"|


 * }