core :: Text :: search_all
pattern
into self.var a = new Array[Int]
for i in "hello world".search_all('o') do
a.add(i.from)
end
assert a == [4, 7]
# Search all occurrences of `pattern` into self.
#
# var a = new Array[Int]
# for i in "hello world".search_all('o') do
# a.add(i.from)
# end
# assert a == [4, 7]
fun search_all(pattern: Pattern): Array[Match] do return pattern.search_all_in(self)
lib/core/text/string_search.nit:433,2--440,85