substr

Undocumented in source. Be warned that the author may not have intended to support it.
@nogc @safe pure nothrow
string
substr
(
string s
,
ptrdiff_t offset
,
ptrdiff_t length = -1
)

Examples

string s = "Aurora Framework";
assertEquals("urora", s.substr(1, 5));
assertEquals("urora Framework", s.substr(1));
assertEquals(s, s.substr(-1, -1));
assertEquals(s, s.substr(-1));
assertEquals(s, s.substr(0, ptrdiff_t.max));
assertEquals("", s.substr(ptrdiff_t.max));

Meta