Example #1
0
 public void AddMatches(TokenMatches matches)
 {
     if (matches.Matches.Count == 0 && matches.Tokens.Count == 0)
     {
         return;
     }
     Matches.Add(matches);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 public void ConcatTokens(TokenMatches matches)
 {
     Tokens.AddRange(matches.Tokens);
 }
Example #4
0
 public Result(string name = "")
 {
     IsMatch = false;
     Matches = new TokenMatches(name);
 }