55
edits
| Line 122: | Line 122: | ||
;append(s String, [begin Number], [end Number]) | ;append(s String, [begin Number], [end Number]) | ||
:Append a | :Append s or, if begin and end are specified, a substring of s to the end of the buffer. This is equal to setting the stream's position to the value of its length property followed by write(s). | ||
;insert(pos Number, s String, [begin Number], [end Number]) | ;insert(pos Number, s String, [begin Number], [end Number]) | ||
:Insert a | :Insert s or, if begin and end are specified, a substring of s at the given position, moving any characters above that position and increasing the length of the buffer by the length of the inserted string. | ||
;toString() String | ;toString() String | ||
:Return the value of the whole buffer as String | :Return the value of the whole buffer as String | ||
edits