dev
Download
37 lines 781 BGroffModified 2025-11-29 raw
12345678910111213141516171819202122232425262728293031323334353637
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.without_prefix 3 2025-11-29 "Tomo man-pages"
.SH NAME
Text.without_prefix \- remove prefix
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Text.without_prefix\ :\ func(text:\ Text,\ prefix:\ Text\ ->\ Text)
.fi
.SH DESCRIPTION
Returns the text with a given prefix removed (if present).


.SH ARGUMENTS

.TS
allbox;
lb lb lbx
l l l.
Name	Type	Description
text	Text	The text to remove the prefix from. 
prefix	Text	The prefix to remove. 
.TE
.SH RETURN
A text without the given prefix (if present) or the unmodified text if the prefix is not present.

.SH EXAMPLES
.EX
assert "foo:baz".without_prefix("foo:") == "baz"
assert "qux".without_prefix("foo:") == "qux"
.EE
.SH SEE ALSO
.BR Tomo-Text (3)