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]

Property definitions

core :: string_search $ Text :: search_all
	# 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