Mercurial > pub > ImplabNet
diff Implab/Formats/CharMap.cs @ 236:302ca905c19e v2
JsonReader optimizations
author | cin |
---|---|
date | Tue, 21 Nov 2017 14:57:58 +0300 |
parents | 6fa235c5a760 |
children |
line wrap: on
line diff
--- a/Implab/Formats/CharMap.cs Thu Oct 05 09:24:49 2017 +0300 +++ b/Implab/Formats/CharMap.cs Tue Nov 21 14:57:58 2017 +0300 @@ -25,7 +25,7 @@ } public bool Contains(char symbol) { - return symbol >= m_min && symbol <= m_max && m_map[symbol-m_min] != AutomatonConst.UNCLASSIFIED_INPUT; + return symbol >= m_min && symbol <= m_max && m_map[symbol-m_min] != AutomatonConst.UnclassifiedInput; } public IEnumerable<char> GetSymbols(int cls) { @@ -36,7 +36,7 @@ [MethodImpl(MethodImplOptions.AggressiveInlining)] public int Translate(char symbol) { - return symbol >= m_min && symbol <= m_max ? m_map[symbol-m_min] : AutomatonConst.UNCLASSIFIED_INPUT; + return symbol >= m_min && symbol <= m_max ? m_map[symbol-m_min] : AutomatonConst.UnclassifiedInput; } } }