(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.replace 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.replace \- replace a substring8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.replace\ :\ func(text:\ Text,\ target:\ Text,\ replacement:\ Text\ ->\ Text)13 .fi14 .SH DESCRIPTION15 Replaces occurrences of a target text with a replacement text.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 text Text The text in which to perform replacements.26 target Text The target text to be replaced.27 replacement Text The text to replace the target with.28 .TE29 .SH RETURN30 The text with occurrences of the target replaced.32 .SH EXAMPLES33 .EX34 assert "Hello world".replace("world", "there") == "Hello there"35 .EE36 .SH SEE ALSO37 .BR Tomo-Text (3)