diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-31 02:34:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-31 02:34:44 -0400 |
| commit | 911a3988395e66ed5a2352f370c634cb02f07202 (patch) | |
| tree | 586959b801b873de7d2f776ba2f5174110139bd2 /docs | |
| parent | 54e65e2f1c944a861a823641ef1b8fe194c7b0d8 (diff) | |
Update docs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/text.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/text.md b/docs/text.md index b43d6bde..c1b2cabe 100644 --- a/docs/text.md +++ b/docs/text.md @@ -296,7 +296,7 @@ pattern documentation](patterns.md) for more details. - [`func lower(text: Text, language: Text = "C" -> Text)`](#lower) - [`func map(text: Text, pattern: Pattern, fn: func(text:Match)->Text -> Text, recursive: Bool = yes)`](#map) - [`func matches(text: Text, pattern: Pattern -> [Text])`](#matches) -- [`func quoted(text: Text, color: Bool = no -> Text)`](#quoted) +- [`func quoted(text: Text, color: Bool = no, quotation_mark: Text = '"' -> Text)`](#quoted) - [`func repeat(text: Text, count:Int -> Text)`](#repeat) - [`func replace(text: Text, pattern: Pattern, replacement: Text, backref: Pattern = $/\/, recursive: Bool = yes -> Text)`](#replace) - [`func replace_all(replacements:{Pattern,Text}, backref: Pattern = $/\/, recursive: Bool = yes -> Text)`](#replace_all) @@ -947,11 +947,12 @@ or a null value otherwise. Formats the text as a quoted string. ```tomo -func quoted(text: Text, color: Bool = no -> Text) +func quoted(text: Text, color: Bool = no, quotation_mark: Text = '"' -> Text) ``` - `text`: The text to be quoted. - `color`: Whether to add color formatting (default is `no`). +- `quotation_mark`: The quotation mark to use (default is `"`). **Returns:** The text formatted as a quoted string. |
