isNullTerminated

pure nothrow @safe @nogc
bool
isNullTerminated
(
scope const(char)[] s
)

Return Value

Type: bool

true if s is null-terminated (ending with '\0').

Prior to parsing used to verify input to parsers that make use of sentinel-based search.

See Also

Meta