public override int Find(int stringIndex, String testString, MatchResultImpl matchResult) { int res = kid.Find(stringIndex, testString, matchResult); if (res >= 0) { matchResult.SetStart(groupIndex, res); } return(res); }
private int FindAt(int startIndex) { matchResult.Reset(); matchResult.SetMode(Matcher.MODE_FIND); matchResult.SetStartIndex(startIndex); int foundIndex = start.Find(startIndex, str0, matchResult); if (foundIndex == -1) { matchResult.hitEnd = true; } return(foundIndex); }