Luna::BasicString::substr
BasicString< _Char, _Alloc > substr(usize pos=0, usize count=npos) const
Creates a substring of this string.
Parameters
-
in pos
The index of the first character to include in the substring.
-
in count
The number of characters to include in the substring. If
pos + countis greater thanthis->size(),countwill be clamped tothis->size() - pos.
Return value
Returns the created substring.
Valid Usage
posmust not be greater thanthis->size().