/* Operations on ASCII values 4.0, by Seren http://www.jazz2online.com/snippets/105/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(""); s[0] = x; return s; }