Function BasicString.frontCodePoint
Returns first utf code point(dchar
) of the BasicString
.
dchar frontCodePoint() const pure nothrow @nogc @property scope @trusted;
This function shall not be called on empty strings.
Examples
BasicString!char str = "á123";
assert(str .frontCodePoint == 'á');