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 <WordList> CreateFromFilesAsync(string dictionaryFilePath, string affixFilePath) => await WordListReader.ReadFileAsync(dictionaryFilePath, affixFilePath).ConfigureAwait(false);
public static async Task <WordList> CreateFromStreamsAsync(Stream dictionaryStream, Stream affixStream) => await WordListReader.ReadAsync(dictionaryStream, affixStream).ConfigureAwait(false);
public static WordList CreateFromFiles(string dictionaryFilePath, string affixFilePath) => WordListReader.ReadFile(dictionaryFilePath, affixFilePath);
public static WordList CreateFromStreams(Stream dictionaryStream, Stream affixStream) => WordListReader.Read(dictionaryStream, affixStream);