ServerJS/IO/A: Difference between revisions

Jump to navigation Jump to search
Line 122: Line 122:


;append(s String, [begin Number], [end Number])
;append(s String, [begin Number], [end Number])
:Append a string 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).
: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 string at the given position, moving any characters above that position and increasing the length of the buffer by s.length.
: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
55

edits

Navigation menu