AlphaTab.Importer.AlphaTexImporter.IsDigit C# (CSharp) Method

IsDigit() private method

Checks if the given character is a digit.
private IsDigit ( int code ) : bool
code int the character
return bool
        private bool IsDigit(int code)
        {
            return (code >= 0x30 && code <= 0x39) || /*0-9*/
                    (code == 0x2D /* - */ && _allowNegatives); // allow - if negatives
        }