Exemplo n.º 1
0
        public void ProcessCurrentMeaningfulBlock(string accumulatedContent)
        {
            var lines = accumulatedContent.SplitUnixLines().ToList();
            var block = SubSections[m_BlockToWriteTo];
            var txtMiniBlockParser = new TxtMiniBlockParser(block);

            txtMiniBlockParser.ProcessOneMeaningfulBlock(ref lines);
        }
Exemplo n.º 2
0
            internal override void ParseString(string st)
            {
                var remainingLines = new List <string>(st.SplitLines());

                while (remainingLines.Any())
                {
                    var block           = new MemberSubSection();
                    var miniBlockParser = new TxtMiniBlockParser(block);
                    miniBlockParser.ProcessOneMeaningfulBlock(ref remainingLines);
                    //block.EnforcePunctuation ();
                    _memDocModel.SubSections.Add(block);
                }
            }
Exemplo n.º 3
0
        public MemberSubSection(string memberDoc, bool isMemInput)
        {
            InitBasics();
            var             remainingLines = new List <string> (memberDoc.SplitUnixLines());
            MiniBlockParser miniBlockParser;

            if (isMemInput)
            {
                miniBlockParser = new MemMiniBlockParser(this);
            }
            else
            {
                miniBlockParser = new TxtMiniBlockParser(this);
            }
            miniBlockParser.ProcessOneMeaningfulBlock(ref remainingLines);
            Assert.IsFalse(remainingLines.Any(), "memInput=" + memberDoc);
            //EnforcePunctuation ();
        }