Loyc.StringBuilderExt.EndsWith C# (CSharp) Method

EndsWith() public static method

Finds out whether the StringBuilder ends with the specified substring.
public static EndsWith ( this sb, UString what, bool ignoreCase = false ) : bool
sb this
what UString
ignoreCase bool
return bool
		public static bool EndsWith(this StringBuilder sb, UString what, bool ignoreCase = false)
		{
			if (what.Length > sb.Length)
				return false;
			return SubstringEqualHelper(sb, sb.Length - what.Length, what, ignoreCase);
		}