Esempio n. 1
0
        public static string BuildResult2(Probable Pr)
        {
            if (Pr == null)
            {
                return("");
            }

            Padyam      P  = Pr.Padyam;
            MatchResult MR = Pr.MatchResult;
            Rule        R  = Pr.Rule;

            if (MR.Total == 0)
            {
                return("");
            }
            string s2 = BuildResult(R, P, MR, Pr.Candiates);

            {
                P  = null;
                MR = null;
                R  = null;
            }

            return(s2);
        }
Esempio n. 2
0
        public static Probable Determine(string s, MatchOptions Options)
        {
            if (s == null || s.Trim().Length == 0)
            {
                return(null);
            }
            Probable Pr = Padyam.MostProbable(s, Options);

            return(Pr);
        }