class Utf8UncasedMatches Uses Unicode case folding for proper handling of international text.
Each iteration yields a String view of the matched region in the haystack. The matched length may differ from needle length due to case folding expansions, like German 'ß' matching 'SS'.
Created by
- String.utf8_uncased_matches()
- sz.utf8_uncased_matches()
Examples
>>> len(list(sz.utf8_uncased_matches('aAaA', 'a')))
4