Luna::BasicString::assign
void assign(const BasicString &str, usize pos, usize count=npos)
Assigns the string data by coping characters from one subrange of another string.
Parameters
-
in str
The string to copy characters from.
-
in pos
The index of the first character to copy.
-
in count
The number of characters to copy. If this is npos, strings in range [
pos,str.size()) will be copied.
Valid Usage
pos + countmust be not greater thanstr.size().