示例#1
0
        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);
        }
示例#2
0
        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);
        }