str.setlen
Setting a new string size. The method does not reserve space. You cannot specify the size of a string greater than the reserved space you have. Mostly, this function is used for specifying the size of a string after external functions write data to it.
uint len
)
Parameters
len | New string size. |
Return value
Returns the object which method has been called.
str.setlenptr
Recalculate the size of a string to the zero character. The function can be used to determine the size of a string after other functions write data into it.
Related links | Source |