Beispiel #1
0
        public bool MoveNext()
        {
            var matched = RureFfi.rure_iter_next(Raw,
                                                 Haystack,
                                                 new UIntPtr((uint)Haystack.Length),
                                                 out _matchInfo);

            if (matched)
            {
                Current = new Match(Haystack,
                                    matched,
                                    (uint)_matchInfo.start,
                                    (uint)_matchInfo.end);
                return(true);
            }

            Current = null;
            return(false);
        }