2005-12-30 03:57:38 -05:00
|
|
|
IN: strings
|
2006-06-04 17:13:34 -04:00
|
|
|
USING: arrays help kernel vectors ;
|
2005-12-30 03:57:38 -05:00
|
|
|
|
2006-01-02 00:51:03 -05:00
|
|
|
HELP: <sbuf> "( n -- 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." }
|
2006-06-04 17:13:34 -04:00
|
|
|
{ $see-also <array> <quotation> <string> <vector> } ;
|
2005-12-30 03:57:38 -05:00
|
|
|
|
2005-12-31 20:51:58 -05:00
|
|
|
HELP: >sbuf "( seq -- sbuf )"
|
2005-12-30 03:57:38 -05:00
|
|
|
{ $values { "seq" "a sequence of non-negative integers" } { "sbuf" "a string buffer" } }
|
2006-01-02 00:51:03 -05:00
|
|
|
{ $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." } ;
|