Rhino.ScriptRuntime.IsJSLineTerminator C# (CSharp) Method

IsJSLineTerminator() public static method

public static IsJSLineTerminator ( int c ) : bool
c int
return bool
		public static bool IsJSLineTerminator(int c)
		{
			// Optimization for faster check for eol character:
			// they do not have 0xDFD0 bits set
			if ((c & unchecked((int)(0xDFD0))) != 0)
			{
				return false;
			}
			return c == '\n' || c == '\r' || c == unchecked((int)(0x2028)) || c == unchecked((int)(0x2029));
		}
ScriptRuntime