System.Data.Common.EntitySql.CqlLexer.IsDigit(char)

Here are the examples of the csharp api class System.Data.Common.EntitySql.CqlLexer.IsDigit(char) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: referencesource
Source File: CqlLexerHelpers.cs
View license
private static bool isHexDigit(char c)
        {
            return (IsDigit(c) || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'));
        }

2. Example

Project: referencesource
Source File: CqlLexerHelpers.cs
View license
internal static bool IsLetterOrDigitOrUnderscore(string symbol, out bool isIdentifierASCII)
        {
            isIdentifierASCII = true;
            for (int i = 0; i < symbol.Length; i++)
            {
                isIdentifierASCII = isIdentifierASCII && symbol[i] < 0x80;
                if (!isIdentifierASCII && !IsLetter(symbol[i]) && !IsDigit(symbol[i]) && (symbol[i] != '_'))
                {
                    return false;
                }
            }
            return true;
        }