the type to convert to
the lvalue of an input range
the flag for deciding to report the number of consumed characters
A ConvException if the range is empty.
import std.typecons : Flag, Yes, No; auto s = "Hello, World!"; char first = parse!char(s); assert(first == 'H'); assert(s == "ello, World!"); char second = parse!(char, string, No.doCount)(s); assert(second == 'e'); assert(s == "llo, World!"); auto third = parse!(char, string, Yes.doCount)(s); assert(third.data == 'l' && third.count == 1); assert(s == "lo, World!");
Parses one character from a character range.