public void AddMatches(TokenMatches matches) { if (matches.Matches.Count == 0 && matches.Tokens.Count == 0) { return; } Matches.Add(matches); }
/// <summary> /// フィールドにマッチした時のイベントを発生させる. /// </summary> /// <param name="name">フィールドの名前.</param> /// <param name="matches"></param> public void OnMatchField(string name, TokenMatches matches) { if (MatchField == null) { return; } matches.Name = name; MatchField(this, matches); }
public void ConcatTokens(TokenMatches matches) { Tokens.AddRange(matches.Tokens); }
public Result(string name = "") { IsMatch = false; Matches = new TokenMatches(name); }