StrInsertL
Description
Insert a single character at the given index, L-value (ownership-transfer) form. Same contract as VecInsertL, specialised for the char element.
Parameters
| Name | Direction | Description |
|---|---|---|
str |
in,out | Str handle. |
lval |
in | Addressable char to insert. |
idx |
in | Position in [0, length]. |
Success
Returns true; the character was inserted and trailing characters shifted right by one. When the string has no copy_init handler, lval has been zeroed.
Failure
Returns false on allocation failure. Neither string nor lval is modified.
Usage example (Cross-references)
Usage examples (Cross-references)
No external code usages found in the scanned files.
Last updated on