Loyc.StringBuilderExt.StartsWith C# (CSharp) Method

StartsWith() public static method

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