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