/* Operations on ASCII values 5.0, by Seren http://www.jazz2online.com/snippets/106/operations-on-ascii-values/ */ uint8 ord(const string &in s) { //Returns the ASCII value of the first character of a string. return s.isEmpty() ? 0 : s[0]; } string chr(uint8 x) { //Returns a one-character string corresponding to an ASCII value. string s('0'); s[0] = x; return s; }