BlackLinks.Templates.TemplateBlock.endsWith C# (CSharp) Method

endsWith() private method

private endsWith ( string str ) : bool
str string
return bool
		bool endsWith (string str)
		{
			int bufferLength = this.Buffer.Length;
			if (bufferLength < str.Length)
			{
				return false;
			}
			for (int i = 0; i < str.Length; i++)
			{
				int bi = bufferLength - str.Length + i;
				if(str[i] != this.Buffer[bi])return false;
			}
			return true;
		}