6.9 string-snip%

On this page:
Inherited methods:
from snip%
top
up

superclass:snip%

An instance of string-snip% is created automatically when text is inserted into a text editor. See also on-new-string-snip in text% .

constructor

( make-object string-snip% [allocsize])(is-a?/c string-snip% )

Creates a string snip whose initial content is s, if supplied, empty otherwise. In the latter case, the optional allocsize argument is a hint about how much storage space for text should be initially allocated by the snip.

method

(send a-string-snip insert slen[pos])void?

Inserts s (with length len) into the snip at relative position pos within the snip.

method

(send a-string-snip read lenf)void?

Reads the snip’s data from the given stream.

The len argument specifies the maximum length of the text to be read. (When a text snip is written to a file, the very first field is the length of the text contained in the snip.) This method is usually invoked by the text snip class’s read method.

top
up

AltStyle によって変換されたページ (->オリジナル) /