/* Operations on ASCII values 1.0, by Seren http://www.jazz2online.com/snippets/68/operations-on-ascii-values/ */ uint8 ord(string &in str){ //Returns the ASCII value of the first character of a string. if(str.isEmpty()) {return 0;} return str[0]; } string chr(uint8 value){ //Returns a one-character string corresponding to an ASCII value. string str="\0"; str[0]=value; return str; }