public static string Scores(string s, MatchOptions Options) { GanaVibhajana G = new GanaVibhajana(s, Options.Language); bool includeRare = Options.IncludeRare; int min = G.Min; int max = G.Max; includeRare = true; List <Rule> Rules = Options.QuickMatch ? RuleHelper.GetAllRules2(min, max, G.PreLines) : RuleHelper.GetAllRules(includeRare); List <MatchResult> L = new List <MatchResult>(); foreach (Rule R in Rules) { Padyam P = new Padyam(); P.MatchYati = Options.MatchYati; P.MatchPrasa = Options.MatchPrasa; P.AllowSantiPrasa = Options.AllowSantiPrasa; P.SandiMatch = Options.ExperimenatalSandhi; MatchResult MR = P.Match(s, R); L.Add(MR); P = null; } string s2 = BuildAllScores(L); { L = null; } return(s2); }
public GanaVibhajana Clone() { GanaVibhajana G = new GanaVibhajana(null, this.Language); G.GWiseString = Copy(this.GWiseString); G.RawString = RawString; G.GWiseString = GWiseString; G.Raw = Raw; G.StringStream = StringStream; G.SymbolsStream = SymbolsStream; G.PreLines = PreLines; return(G); }