Here are the examples of the csharp api class System.Data.Common.EntitySql.CqlLexer.isHexDigit(char) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseprivate static bool IsValidGuidValue(string guidValue) { int startIndex = 0; int endIndex = guidValue.Length - 1; if ((endIndex - startIndex) + 1 != 36) { return false; } int i = 0; bool bValid = true; while (bValid && i < 36) { if ((i == 8) || (i == 13) || (i == 18) || (i == 23)) { bValid = (guidValue[startIndex + i] == '-'); } else { bValid = isHexDigit(guidValue[startIndex + i]); } i++; } return bValid; }
0
2. Example
View licenseprivate static bool IsValidBinaryValue(string binaryValue) { Debug.Assert(null != binaryValue, "binaryValue must not be null"); if (String.IsNullOrEmpty(binaryValue)) { return true; } int i = 0; bool bValid = binaryValue.Length > 0; while (bValid && i < binaryValue.Length) { bValid = isHexDigit(binaryValue[i++]); } return bValid; }