nullTerminated

Undocumented in source. Be warned that the author may not have intended to support it.
nullTerminated
(
E
)
(
E* ptr
)

Examples

t
{
	void test(S)(S s)
	{
		import std.utf, std.algorithm.comparison;
		assert(equal(s.byCodeUnit, s.ptr.nullTerminated));
	}
	// String literals are null-terminated
	test("foo");
	test("foo"w);
	test("foo"d

Meta