Returns a slice [begin .. end]. If the requested substring extends past the end of the string, the returned slice is [begin .. length()].
The slice returned may be invalidated by further calls to other member functions that modify the object.
()@system{ BasicString!char str = "123456"; assert(str[1 .. $-1] == "2345"); }(); ()@safe{ FixedString!(char, 20) str = "123456"; assert(str[1 .. $-1] == "2345"); }();
See Implementation
Returns a slice [begin .. end]. If the requested substring extends past the end of the string, the returned slice is [begin .. length()].
The slice returned may be invalidated by further calls to other member functions that modify the object.