Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StringParamTrimmer"/> class.
 /// </summary>
 /// <param name="StringMatcher">
 /// The string matcher.
 /// </param>
 /// <param name="Direction">
 /// The direction.
 /// </param>
 /// <param name="FlaggedOnly">
 /// The flagged only.
 /// </param>
 /// <param name="FieldNameResolver">
 /// The field name resolver.
 /// </param>
 public StringParamTrimmer(
     StringMatchingBase StringMatcher,
     WardUnidimensional Direction,
     bool FlaggedOnly = false,
     SearchFieldNameResolver FieldNameResolver = null)
     : base(StringMatcher, FlaggedOnly, FieldNameResolver)
 {
     this.Direction = Direction;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StringParamReplacer"/> class.
 /// </summary>
 /// <param name="StringMatcher">
 /// The string matcher.
 /// </param>
 /// <param name="Replacer">
 /// The replacer.
 /// </param>
 /// <param name="FlaggedOnly">
 /// The flagged only.
 /// </param>
 /// <param name="FieldNameResolver">
 /// The field name resolver.
 /// </param>
 public StringParamReplacer(
     StringMatchingBase StringMatcher,
     string Replacer,
     bool FlaggedOnly = false,
     SearchFieldNameResolver FieldNameResolver = null)
     : base(StringMatcher, FlaggedOnly, FieldNameResolver)
 {
     this.Replacer = Replacer;
 }
Пример #3
0
        // --------------------------------------------------------

        // конвертировать строку

        // --------------------------------------------------------
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="StringConverterBase"/> class.
        /// </summary>
        /// <param name="StringMatcher">
        /// The string matcher.
        /// </param>
        /// <param name="FlaggedOnly">
        /// The flagged only.
        /// </param>
        /// <param name="FieldNameResolver">
        /// The field name resolver.
        /// </param>
        protected StringConverterBase(
            StringMatchingBase StringMatcher,
            bool FlaggedOnly = false,
            SearchFieldNameResolver FieldNameResolver = null)
        {
            this.StringMatcher = StringMatcher;
            this.FlaggedOnly   = FlaggedOnly;
            AllowedFields      = new PolicySearchFields(FieldNameResolver);
        }