35 references to LexCharUtils
Microsoft.ML.Transforms (35)
Expression\Lexer.cs (35)
171
LexStartKind kind =
LexCharUtils
.StartKind(ChCur);
186
if (
LexCharUtils
.StartKind(ChPeek(1)) == LexStartKind.Ident)
233
if (!
LexCharUtils
.IsPunc(ch))
250
Contracts.Assert(
LexCharUtils
.StartKind(ChCur) == LexStartKind.NumLit);
251
Contracts.Assert(
LexCharUtils
.IsDigit(ChCur) || ChCur == '.');
254
if (ChCur == '.' && !
LexCharUtils
.IsDigit(ChPeek(1)))
259
if (ChCur == '0' && (ChPeek(1) == 'x' || ChPeek(1) == 'X') &&
LexCharUtils
.IsHexDigit(ChPeek(2)))
268
Contracts.Assert(
LexCharUtils
.IsDigit(ChCur) || ChCur == '.' &&
LexCharUtils
.IsDigit(ChPeek(1)));
278
if (fDot || !
LexCharUtils
.IsDigit(ChPeek(1)))
282
else if (!
LexCharUtils
.IsDigit(ChCur))
291
if (
LexCharUtils
.IsDigit(chTmp) || (chTmp == '+' || chTmp == '-') &&
LexCharUtils
.IsDigit(ChPeek(2)))
296
while (
LexCharUtils
.IsDigit(chTmp = ChNext()))
316
Contracts.Assert(
LexCharUtils
.IsHexDigit(ChCur));
328
u = (u << 4) + (ulong)
LexCharUtils
.GetHexVal(ChCur);
329
} while (
LexCharUtils
.IsHexDigit(ChNext()));
349
u = checked(u * 10 + (ulong)
LexCharUtils
.GetDecVal(_sb[ich]));
478
else if (
LexCharUtils
.IsLineTerm(ch))
499
if (ch == chQuote || Eof ||
LexCharUtils
.IsLineTerm(ch))
618
if (!
LexCharUtils
.IsHexDigit(ChCur))
625
u = (u << 4) + (uint)
LexCharUtils
.GetHexVal(ChCur);
678
Contracts.Assert(
LexCharUtils
.IsIdentStart(ChCur));
691
if (u > 0xFFFF || !
LexCharUtils
.IsIdent(ch = (char)u))
693
ReportError(ichErr, _cursor.IchCur, ErrId.BadChar,
LexCharUtils
.GetUniEscape(u));
700
if (!
LexCharUtils
.IsIdent(ChCur))
705
Contracts.Assert(
LexCharUtils
.IsIdent(ch));
706
if (!
LexCharUtils
.IsFormat(ch))
735
if (
LexCharUtils
.IsLineTerm(ChNext()) || Eof)
754
if (
LexCharUtils
.IsLineTerm(ch))
784
Contracts.Assert(
LexCharUtils
.StartKind(ChCur) == LexStartKind.Space);
785
while (
LexCharUtils
.IsSpace(ChNext()))
798
Contracts.Assert(
LexCharUtils
.StartKind(ChCur) == LexStartKind.LineTerm);
838
_sb.AppendFormat("{0}({1})", ChCur,
LexCharUtils
.GetUniEscape(ChCur));
839
} while (
LexCharUtils
.StartKind(ChNext()) == LexStartKind.None && !Eof);