UtfString.opSlice

opSlice. Extracts an indexed sequence of unicode characters from the referenced string.

For dchar output, the returned slice is built up in the internal slice_string member. Otherwise a slice into the referenced string is returned.

struct UtfString(Char = char, bool pull_dchars = false)
opSlice
(
size_t start
,
size_t end
)

Parameters

start size_t

index of first character to extract

end size_t

index of last character to extract

Return Value

the sliced characters (either as dchars or as the same type as the referenced string).

Meta