RCString.opSlice

Undocumented in source. Be warned that the author may not have intended to support it.
  1. auto opSlice(size_t start, size_t end)
    struct RCString
    opSlice
    (
    size_t start
    ,
    size_t end
    )
  2. auto opSlice()

Examples

auto a = RCString("abcdef");
assert(a[2 .. $].equal("cdef"));
assert(a[0 .. 2].equal("ab"));
assert(a[3 .. $ - 1].equal("de"));

Meta