On Wednesday, 22 February 2017 at 20:01:57 UTC, Adam D. Ruppe wrote:
On Wednesday, 22 February 2017 at 19:26:15 UTC, berni wrote:
herefore I'd like to make sure that the string the program read is only made up of ascii characters.

Easiest:

foreach(char ch; postscript)
  if(ch > 127) throw new Exception("non-ascii detected");

:)

Reply via email to