Esempio n. 1
0
        /// @com.intel.drl.spec_ref
        public bool Find(int startIndex)
        {
            int stringLength = str0.Length;

            if (startIndex < 0 || startIndex > stringLength)
            {
                throw new IndexOutOfRangeException("regex.03" +                 //$NON-NLS-1$
                                                   ((int)(startIndex)).ToString());
            }

            startIndex = FindAt(startIndex);
            if (startIndex >= 0 && matchResult.IsValid())
            {
                matchResult.FinalizeMatch();
                return(true);
            }
            matchResult.startIndex = -1;
            return(false);
        }