annotate Implab/Formats/CharAlphabet.cs @ 227:8d5de4eb9c2c
v2
Reimplemented JsonXmlReader, added support for null values: JSON null values are
mapped to empty nodes with 'xsi:nil' attribute set to 'true'
author |
cin |
date |
Sat, 09 Sep 2017 03:53:13 +0300 |
parents |
a0ff6a0e9c44 |
children |
6fa235c5a760 |
rev |
line source |
165
|
1 using System.Collections.Generic;
|
164
|
2 using System.Linq;
|
165
|
3 using Implab.Automaton;
|
164
|
4
|
165
|
5 namespace Implab.Formats {
|
164
|
6 public class CharAlphabet: IndexedAlphabetBase<char> {
|
|
7
|
|
8 public override int GetSymbolIndex(char symbol) {
|
|
9 return symbol;
|
|
10 }
|
|
11
|
176
|
12 public IEnumerable<char> InputSymbols {
|
164
|
13 get { return Enumerable.Range(char.MinValue, char.MaxValue).Cast<char>(); }
|
|
14 }
|
|
15 }
|
|
16 }
|