Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
The most basic way to alter the contents of an existing string is with
aset (see section 6.3 Functions that Operate on Arrays).
idx char) stores char into string at index
idx. Each character occupies one or more bytes, and if char
needs a different number of bytes from the character already present at
aset signals an error.
A more powerful function is
Since it is impossible to change the length of an existing string, it is an error if obj doesn't fit within string's actual length, or if any new character requires a different number of bytes from the character currently present at that point in string.
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|