Beispiel #1
0
 public override IEnumerable <RegexMatch> SimpleMatchings(StringPointer str, MatingContext context)
 {
     if (str.Value().Length > 0)
     {
         yield return(new AtomicMatch(this, str, 1));
     }
 }
Beispiel #2
0
        public sealed override IEnumerable <RegexMatch> SimpleMatchings(StringPointer str, MatingContext context)
        {
            if (str.Length == 0)
            {
                yield break;
            }
            var sub = str.Value()[0];

            if (CheckChar(sub))
            {
                yield return(new AtomicMatch(this, str, 1));
            }
        }