Esempio n. 1
0
            public int Next(StringSplitter splitter)
            {
                var nextChar = splitter.Stream.Next();

                if (nextChar == '"')
                {
                    var normal = new CharacterParser();
                    splitter.CharacterGrabber = normal;
                    return(normal.Next(splitter));
                }
                return(nextChar);
            }
Esempio n. 2
0
            public int Next(StringSplitter splitter)
            {
                var nextChar = splitter.Stream.Next();

                if (nextChar == '"')
                {
                    var ignoreQuotes = new IgnoreQuotesParser();
                    splitter.CharacterGrabber = ignoreQuotes;
                    return(ignoreQuotes.Next(splitter));
                }
                else if (nextChar == splitter.Separator)
                {
                    return(-1);
                }
                return(nextChar);
            }