public WordProcessor(int size) { //initialize stemmer porterstemmer = new Stemmer(); wordbuffer = new char[size]; tempbuffer = new char[3 * size]; bufferlength = size; specialhtml_dict = new Dictionary<string, char>(); for (int i = 0; i < specialhtml.Length; i++) { specialhtml_dict.Add(specialhtml[i], specialreplacements[i]); } prettypunctuation_dict = new HashSet<char>(); foreach (char letter in prettypunctuation) { prettypunctuation_dict.Add(letter); } hyphenations = new int[3]; isInteger = new bool[4]; }
public WordProcessor(int size) { //initialize stemmer porterstemmer = new Stemmer(); wordbuffer = new char[size]; tempbuffer = new char[3 * size]; bufferlength = size; specialhtml_dict = new Dictionary <string, char>(); for (int i = 0; i < specialhtml.Length; i++) { specialhtml_dict.Add(specialhtml[i], specialreplacements[i]); } prettypunctuation_dict = new HashSet <char>(); foreach (char letter in prettypunctuation) { prettypunctuation_dict.Add(letter); } hyphenations = new int[3]; isInteger = new bool[4]; }