code: def uord(c):
      
  
      if len(c) == 2:  # pragma: no cover
          high, low = [ord(p) for p in c]
          ordinal = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000
      else:
          ordinal = ord(c)
  
      return ordinal
docs: Get Unicode ordinal.