LayoutFarm.TextBreak.DevelopingWordGroup.CollectAllWords C# (CSharp) Method

CollectAllWords() private method

private CollectAllWords ( TextBuffer textBuffer, List output ) : void
textBuffer TextBuffer
output List
return void
        internal void CollectAllWords(TextBuffer textBuffer, List<string> output)
        {
            if (this.PrefixIsWord)
            {
                output.Add(GetPrefix(textBuffer));
            }
            if (subGroups != null)
            {
                foreach (DevelopingWordGroup wordGroup in subGroups)
                {
                    if (wordGroup != null)
                    {
                        wordGroup.CollectAllWords(textBuffer, output);
                    }
                }
            }
            if (wordSpanList != null)
            {
                foreach (var span in wordSpanList)
                {
                    output.Add(span.GetString(textBuffer));
                }
            }
        }
        public int PrefixLen { get { return this.prefixSpan.len; } }