internal Wildcard(Match.MatchOptions options, Match.MatchParameter parameter) { _Options = options.Clone(); _Options.SynonymOutput = false; _Options.WildcardOutput = false; _Parameter = parameter.Clone(); }
internal Wildcard(Match.MatchOptions options, Match.MatchParameter parameter) { _Options = options.Clone(); _Options.SynonymOutput = false; _Options.WildcardOutput = false; _Parameter = parameter.Clone(); }
public WildcardInfo(string wildcard, Segment segment, Match.MatchOptions options, Match.MatchParameter parameter) { this.Key = wildcard.ToLower(); this.Segments.Add(new WordInfo(wildcard, POS.POS_UNK, 0)); foreach (WordInfo wordInfo in segment.DoSegment(wildcard, options, parameter)) { if (wordInfo.Word != wildcard) { this.Segments.Add(wordInfo); } } }
public Match.MatchParameter GetParameterCopy() { Match.MatchParameter parameter = new Match.MatchParameter(); parameter.Redundancy = this.Parameters.Redundancy; parameter.UnknowRank = this.Parameters.UnknowRank; parameter.BestRank = this.Parameters.BestRank; parameter.SecRank = this.Parameters.SecRank; parameter.ThirdRank = this.Parameters.ThirdRank; parameter.SingleRank = this.Parameters.SingleRank; parameter.NumericRank = this.Parameters.NumericRank; parameter.EnglishRank = this.Parameters.EnglishRank; parameter.SymbolRank = this.Parameters.SymbolRank; parameter.SimplifiedTraditionalRank = this.Parameters.SimplifiedTraditionalRank; return(parameter); }