Handbook
Glossary
text-matches? ( string text -- match-count/f )
Vocabulary
xmode
.
marker
Inputs
string
an
object
text
an
object
Outputs
match-count/f
an
object
Definition
IN:
xmode.marker
GENERIC:
text-matches?
( string text -- match-count/f )
Methods
USING:
kernel
xmode.marker
;
M:
f
text-matches?
2drop
f
;
USING:
accessors
kernel
regexp
strings
xmode.marker
;
M:
regexp
text-matches?
[
>string
]
dip
match-start
dup
[
to>>
]
when
;
USING:
accessors
kernel
sequences
xmode.marker
xmode.rules
;
M:
string-matcher
text-matches?
[
string>>
]
[
ignore-case?>>
]
bi
[
string-head?
]
keepd
length
and
;