Handbook
Glossary
pprint-string ( obj str prefix suffix -- )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinting more complex literals
Prev:
pprint-elements ( seq -- )
Next:
pprint-prefix ( word quot -- )
Vocabulary
prettyprint
.
backend
Inputs
obj
an
object
str
a
string
prefix
a
string
suffix
a
string
Outputs
None
Word description
Outputs a text section consisting of the prefix, the string, and a final quote (").
Notes
This word should only be called from inside the
with-pprint
combinator.
Definition
USING:
kernel
prettyprint.sections
prettyprint.stylesheet
;
IN:
prettyprint.backend
:
pprint-string
( obj str prefix suffix -- )
unparse-string
swap
string-style
styled-text
;