CyPhy2CAD_CSharp.DataRep.StructuralInterfaceConstraint.MatchSIType C# (CSharp) Method

MatchSIType() private static method

private static MatchSIType ( string a_original, string b_original ) : bool
a_original string
b_original string
return bool
        private static bool MatchSIType(string a_original,
                         string b_original)
        {
            string a = a_original.ToLower();
            string b = b_original.ToLower();

            int a_size = a.Count();
            int b_size = b.Count();

            if (a == b)
            {
                return true;
            }
            else
            {
                if (a_size != b_size)
                    return false;

                for (int i = 0; i < a_size; i++)
                {
                    if (a[i] != '*' && b[i] != '*')
                        if (a[i] != b[i])
                            return false;
                }
                return true;
            }
        }