/// <summary> /// Sets a user defined function for processing prior to RegEx matching. /// </summary> /// <remarks> /// Appends an <see cref="IInputManipulation"/> delegate to the existing queue. /// <para>If queue does not exist, it will be created.</para> /// </remarks> /// <param name="inputManipulation">Delegate that ist called prior to RegEx matching.</param> public void SetInputManipulation(IInputManipulation inputManipulation) { if (this.InputManipulationQueue == null) { this.InputManipulationQueue = new Queue <IInputManipulation>(); } this.InputManipulationQueue.Enqueue(inputManipulation); }
/// <summary> /// Creates a new instance of <see cref="AddressSeparationProcessor{TOutputFormat}" /> with user defined input manipulation function. /// </summary> /// <param name="inputManipulation">Delegates that is called prior to RegEx matching.</param> public AddressSeparationProcessor(IInputManipulation inputManipulation) : this(null, null) { this.SetInputManipulation(inputManipulation); }