public static async Task <WordList> ReadAsync(IHunspellLineReader dictionaryReader, AffixConfig affix, WordList.Builder builder = null) { var readerInstance = new WordListReader(builder, affix); string line; while ((line = await dictionaryReader.ReadLineAsync().ConfigureAwait(false)) != null) { readerInstance.ParseLine(line); } return(readerInstance.Builder.MoveToImmutable()); }
public static WordList Read(IHunspellLineReader dictionaryReader, AffixConfig affix, WordList.Builder builder = null) { var readerInstance = new WordListReader(builder, affix); string line; while ((line = dictionaryReader.ReadLine()) != null) { readerInstance.ParseLine(line); } return(readerInstance.Builder.MoveToImmutable()); }
public static async Task <HunspellDictionary> FromFileAsync(string dictionaryFilePath, string affixFilePath) => new HunspellDictionary(await WordListReader.ReadFileAsync(dictionaryFilePath, affixFilePath).ConfigureAwait(false));
public static async Task <HunspellDictionary> ReadAsync(Stream dictionaryStream, Stream affixStream) => new HunspellDictionary(await WordListReader.ReadAsync(dictionaryStream, affixStream).ConfigureAwait(false));
public static HunspellDictionary FromFile(string dictionaryFilePath, string affixFilePath) => new HunspellDictionary(WordListReader.ReadFile(dictionaryFilePath, affixFilePath));
public static HunspellDictionary Read(Stream dictionaryStream, Stream affixStream) => new HunspellDictionary(WordListReader.Read(dictionaryStream, affixStream));