public override IEnumerable <RegexMatch> SimpleMatchings(StringPointer str, MatingContext context) { if (str.Value().Length > 0) { yield return(new AtomicMatch(this, str, 1)); } }
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)); } }