Esempio n. 1
0
        /// <summary>
        /// Returns a pattern that matches numbers.
        /// </summary>
        ///
        /// <param name="requireWhitespaceTerminator">
        /// (optional) when true, only whitespace can terminate this number. When false, any non-numeric character will succesfully terminate the pattern.
        /// </param>
        ///
        /// <returns>
        /// The total number of ber.
        /// </returns>

        public static IExpectPattern Number(bool requireWhitespaceTerminator = false)
        {
            var pattern = new Patterns.Number();

            pattern.RequireWhitespaceTerminator = requireWhitespaceTerminator;
            return(pattern);
        }
Esempio n. 2
0
        /// <summary>
        /// Returns a pattern that matches numbers.
        /// </summary>
        ///
        /// <param name="requireWhitespaceTerminator">
        /// (optional) when true, only whitespace can terminate this number. When false, any non-numeric character will succesfully terminate the pattern.
        /// </param>
        ///
        /// <returns>
        /// The total number of ber.
        /// </returns>

        public static IExpectPattern Number(bool requireWhitespaceTerminator = false)
        {
            var pattern = new Patterns.Number();
            pattern.RequireWhitespaceTerminator = requireWhitespaceTerminator;
            return pattern;
        }