17 lines
908 B
Plaintext
17 lines
908 B
Plaintext
IN: strings
|
|
USING: arrays byte-arrays bit-arrays help kernel sbufs vectors ;
|
|
|
|
HELP: sbuf
|
|
{ $description "The class of resizable character strings. See " { $link "syntax-sbufs" } " for syntax and " { $link "sbufs" } " for general information." } ;
|
|
|
|
HELP: <sbuf>
|
|
{ $values { "n" "a positive integer specifying initial capacity" } { "sbuf" "a new string buffer" } }
|
|
{ $description "Creates a new string buffer that can hold " { $snippet "n" } " characters before resizing." }
|
|
{ $see-also <array> <quotation> <string> <vector> <bit-array> } ;
|
|
|
|
HELP: >sbuf
|
|
{ $values { "seq" "a sequence of non-negative integers" } { "sbuf" "a string buffer" } }
|
|
{ $description "Outputs a freshly-allocated string buffer with the same elements as a given sequence." }
|
|
{ $errors "Throws an error if the sequence contains elements other than real numbers." }
|
|
{ $see-also >array >string >vector >quotation >byte-array >bit-array } ;
|