Copy a decoded substring to another character string.
size_type copy( char* dest, size_type count, size_type pos = 0) const;
This function copies a substring to the character array pointed to by the
destination char string, where rcount
is the smaller of count
and size()
- pos
.
Strong guarantee. Exceptions thrown on invalid positions.
pos > size()
Type |
Thrown On |
---|---|
|
|
Name |
Description |
---|---|
|
pointer to the destination character string |
|
requested substring length |
|
position of the first character |
Number of characters copied