Esempio n. 1
0
 private WordWithSpace NextWordWithSpace(WordReader reader)
 {
     return (new WordWithSpace
                {
                    Word = reader.NextWord(),
                    Space = reader.NextSpace()
                });
 }
Esempio n. 2
0
 public IEnumerable<WordWithSpace> Split(string input)
 {
     var reader = new WordReader(input);
     while (!reader.EOF())
         yield return NextWordWithSpace(reader);
 }