AssetPackager.ScriptDeferFilter.CompareChars C# (CSharp) Method

CompareChars() private static method

Compares string with characters contained in the content at the specified position ignoring case.
String value to compare should be uppercased (for example "EXAMPLE")!
private static CompareChars ( string value, char content, int pos ) : bool
value string Value to compare.
content char An array of characters to look in.
pos int Starting position in the buffer.
return bool
		private static bool CompareChars(string value, char[] content, int pos)
		{
			if (pos + value.Length >= content.Length) return false;
			int i = 0;
			foreach (char c in value)
			{
				if (c != Char.ToUpper(content[pos + i], CultureInfo.InvariantCulture)) return false;
				i++;
			}
			return true;
		}