comparison Implab/Formats/CharAlphabet.cs @ 236:302ca905c19e v2

JsonReader optimizations
author cin
date Tue, 21 Nov 2017 14:57:58 +0300
parents 6fa235c5a760
children
comparison
equal deleted inserted replaced
235:b49969a7043c 236:302ca905c19e
2 using System.Linq; 2 using System.Linq;
3 using Implab.Automaton; 3 using Implab.Automaton;
4 using System; 4 using System;
5 5
6 namespace Implab.Formats { 6 namespace Implab.Formats {
7 public class CharAlphabet: IndexedAlphabetBase<char> { 7 public class CharAlphabet : IndexedAlphabetBase<char> {
8 8
9 public override int GetSymbolIndex(char symbol) { 9 public override int GetSymbolIndex(char symbol) {
10 return symbol; 10 return symbol;
11 } 11 }
12 12