comparison Implab/Automaton/MapAlphabet.cs @ 236:302ca905c19e v2

JsonReader optimizations
author cin
date Tue, 21 Nov 2017 14:57:58 +0300
parents b2b6a6640aa3
children
comparison
equal deleted inserted replaced
235:b49969a7043c 236:302ca905c19e
52 int cls; 52 int cls;
53 if (m_map.TryGetValue(symbol, out cls)) 53 if (m_map.TryGetValue(symbol, out cls))
54 return cls; 54 return cls;
55 if (!m_supportUnclassified) 55 if (!m_supportUnclassified)
56 throw new ArgumentOutOfRangeException("symbol", "The specified symbol isn't in the alphabet"); 56 throw new ArgumentOutOfRangeException("symbol", "The specified symbol isn't in the alphabet");
57 return AutomatonConst.UNCLASSIFIED_INPUT; 57 return AutomatonConst.UnclassifiedInput;
58 } 58 }
59 59
60 public int Count { 60 public int Count {
61 get { 61 get {
62 return m_nextCls; 62 return m_nextCls;