コード例 #1
0
        private TextPart GetNextPartWithConditions(CharacterType characterType)
        {
            var text = new StringBuilder();

            while (ContainsAnyLetters() && GetTypeNextCharacter() == characterType)
            {
                text.Append(GetNextSymbol());
                ClearLastReadLetter();
            }
            return(new TextPart(text.ToString(), characterType.BelongsTo()));
        }