blob: 3397cc2b092d5cf0323488b57c5b47e5f63078f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Text.has 3 2025-11-29 "Tomo man-pages"
.SH NAME
Text.has \- check for substring
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Text.has\ :\ func(text:\ Text,\ target:\ Text\ ->\ Bool)
.fi
.SH DESCRIPTION
Checks if the `Text` contains some target text.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx
l l l.
Name Type Description
text Text The text to be searched.
target Text The text to search for.
.TE
.SH RETURN
`yes` if the target text is found, `no` otherwise.
.SH EXAMPLES
.EX
assert "hello world".has("wo") == yes
assert "hello world".has("xxx") == no
.EE
.SH SEE ALSO
.BR Tomo-Text (3)
|