<div dir="ltr">Is there a simple way to parse a string as a char?<div>eg:</div><div>unittest{</div><div>  assert(parseChar(`a`)=='a');</div><div>  assert(parseChar(`\n`)=='\n'); //NOTE: I'm looking at `\n` not "\n"</div><div>  // should also work with other forms of characters, see <a href="http://dlang.org/lex.html">http://dlang.org/lex.html</a></div><div>}<br></div><div>Note, <a href="http://std.conv.to">std.conv.to</a> doesn't work (`\n`.to!char does not work)</div><div><br></div></div>