Ejemplo n.º 1
0
        /// <summary>
        /// Read the IniGroup name.
        /// [group1]
        /// </summary>
        /// <param name="parser"></param>
        /// <returns></returns>
        public static string ReadComment(IIniParser parser)
        {
            StringBuilder buffer = new StringBuilder();

            // Exclude the "[" bracket from consuming the token("group name").
            string comment = parser.ReadTokenToEndOfLine();

            return(comment);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Read the IniGroup name.
        /// [group1]
        /// </summary>
        /// <param name="parser"></param>
        /// <returns></returns>
        public static string ReadValue(IIniParser parser)
        {
            StringBuilder buffer = new StringBuilder();

            // Get rid of starting whitespace.
            parser.ConsumeWhiteSpace();

            if (parser.CurrentChar != IniParserConstants.DoubleQuote)
            {
                return(parser.ReadTokenToEndOfLine());
            }

            return(ReadValueMultiLine(parser));
        }