dev
Download
37 lines 783 BGroffModified 2025-11-29 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.quoted 3 2025-11-29 "Tomo man-pages"
.SH NAME
Text.quoted \- add quotation marks and escapes
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Text.quoted\ :\ func(text:\ Text,\ color:\ Bool\ =\ no,\ quotation_mark:\ Text\ =\ `"`\ ->\ Text)
.fi
.SH DESCRIPTION
Formats the text with quotation marks and escapes.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
text	Text	The text to be quoted. 	-
color	Bool	Whether to add color formatting. 	no
quotation_mark	Text	The quotation mark to use. 	`"`
.TE
.SH RETURN
The text formatted as a quoted text.

.SH EXAMPLES
.EX
assert "one\[rs]ntwo".quoted() == "\[rs]"one\[rs]\[rs]ntwo\[rs]""
.EE
.SH SEE ALSO
.BR Tomo-Text (3)