(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Text.has 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Text.has \- check for substring8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Text.has\ :\ func(text:\ Text,\ target:\ Text\ ->\ Bool)13 .fi14 .SH DESCRIPTION15 Checks if the `Text` contains some target text.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 text Text The text to be searched.26 target Text The text to search for.27 .TE28 .SH RETURN29 `yes` if the target text is found, `no` otherwise.31 .SH EXAMPLES32 .EX33 assert "hello world".has("wo") == yes34 assert "hello world".has("xxx") == no35 .EE36 .SH SEE ALSO37 .BR Tomo-Text (3)