Exemplo n.º 1
0
        public override string GetValue()
        {
            string charSet = InputCharacters.GetValue();

            if (String.IsNullOrEmpty(charSet))
            {
                return(UpdateCache(""));
            }

            string prefix = InputDoInvert.IsChecked ? "^" : "";
            string result = "[" + prefix + charSet + "]";

            return(UpdateCache(result));
        }
Exemplo n.º 2
0
        protected override NodeResultBuilder GetValue()
        {
            string charSet = InputCharacters.GetValue();

            string prefix = InputDoInvert.Checked ? "^" : "";
            string result = "[" + prefix + charSet + "]";

            string suffix = GetSuffix(this);

            var builder = new NodeResultBuilder();

            builder.Append(result, this);
            builder.Append(suffix, this);
            return(builder);
        }
Exemplo n.º 3
0
        protected override NodeResultBuilder GetValue()
        {
            string charSet = InputCharacters.GetValue();

            string prefix = InputDoInvert.IsChecked ? "^" : "";
            string result = "[" + prefix + charSet + "]";

            string suffix = GetSuffix(
                InputCount.Value,
                InputNumber.InputContents,
                InputMin.GetValue(),
                InputMax.GetValue());

            var builder = new NodeResultBuilder();

            builder.Append(result, this);
            builder.Append(suffix, this);
            return(builder);
        }
Exemplo n.º 4
0
        protected override string GetValue()
        {
            string charSet = InputCharacters.GetValue();

            if (String.IsNullOrEmpty(charSet))
            {
                return(UpdateCache(""));
            }

            string prefix = InputDoInvert.IsChecked ? "^" : "";
            string result = "[" + prefix + charSet + "]";

            string suffix = Quantifier.Repetitions.GetSuffix(
                InputCount.DropdownValue,
                InputNumber.InputContents,
                InputMin.GetValue(),
                InputMax.GetValue());

            return(UpdateCache(result + suffix));
        }