void () { RegexFacade regex = RegexFacade.regex("мир"); StringWithId string = new StringWithId("привет, мир!"); MatchData match = regex.match(string, null); assertEquals(new TextMateRange(8, 11), match.codePointRange(string.bytes)); }