Movatterモバイル変換


[0]ホーム

URL:


[LISPWORKS][Common Lisp HyperSpec (TM)][Previous][Up][Next]


FunctionGET-OUTPUT-STREAM-STRING

Syntax:

get-output-stream-stringstring-output-stream =>string

Arguments and Values:

string-output-stream---astream.

string---astring.

Description:

Returns astring containing, in order, all thecharacters that have been output tostring-output-stream. This operation clears anycharacters onstring-output-stream, so thestring contains only thosecharacters which have been output since the last call toget-output-stream-string or since the creation of thestring-output-stream, whichever occurred most recently.

Examples:

 (setq a-stream (make-string-output-stream)        a-string "abcdefghijklm") =>  "abcdefghijklm" (write-string a-string a-stream) =>  "abcdefghijklm" (get-output-stream-string a-stream) =>  "abcdefghijklm" (get-output-stream-string a-stream) =>  ""

Side Effects:

Thestring-output-stream is cleared.

Affected By: None.

Exceptional Situations:

The consequences are undefined ifstream-output-string isclosed.

The consequences are undefined ifstring-output-stream is astream that was not produced bymake-string-output-stream. The consequences are undefined ifstring-output-stream was created implicitly bywith-output-to-string orformat.

See Also:

make-string-output-stream

Notes: None.


The followingX3J13 cleanup issues,not part of the specification, apply to this section:


[Starting Points][Contents][Index][Symbols][Glossary][Issues]
Copyright 1996-2005, LispWorks Ltd. All rights reserved.


[8]ページ先頭

©2009-2025 Movatter.jp