System.Xml.Xsl.Runtime.XmlCollation.IsSuffix C# (CSharp) Method

IsSuffix() private method

Return true if str1 ends with str2.
private IsSuffix ( string str1, string str2 ) : bool
str1 string
str2 string
return bool
        internal bool IsSuffix(string str1, string str2) {
            if (this.options.Ordinal){
                if (str1.Length < str2.Length) {
                    return false;
                } else {
                    return String.CompareOrdinal(str1, str1.Length - str2.Length, str2, 0, str2.Length) == 0;
                }
            }
            return Culture.CompareInfo.IsSuffix (str1, str2, this.compops);
        }