/// <summary> /// Removes substring starting character position in the source string. /// This action is inclusive. /// <para>N.B.: Default Remove().Starting() is equivalent of Remove().Starting().From(The.Beginning)</para> /// </summary> /// <param name="position">Starting position in string for removal.</param> public static RemoveStringStarting Starting(this RemoveString source, int position) { return(new RemoveStringStarting(source, position)); }
/// <summary> /// Removes substring up to the first occurrence of the marker in the source string. /// This allows to make Remove.To action inclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="position">Exact position for removal point.</param> /// <param name="marker">Marker value for removal point.</param> /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used.</exception> public static RemoveStringToOccurrencePosition To(this RemoveString source, The position, string marker) { return(source.To(position, 1, of: marker)); }
/// <summary> /// Removes substring up to the given occurrence of the marker in the source string. /// This allows to make Remove.To action inclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="position">Exact position for removal point.</param> /// <param name="occurrence">Occurrence count to start from.</param> /// <param name="of">Marker value for removal point.</param> /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used.</exception> public static RemoveStringToOccurrencePosition To(this RemoveString source, The position, int occurrence, string of) { return(new RemoveStringToOccurrencePosition(source, position, occurrence, of)); }
/// <summary> /// Removes substring up to the first marker in the source string. /// This action is exclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="marker">Marker value for removal point.</param> public static RemoveStringToOccurrence To(this RemoveString source, string marker) { return(source.To(1, of: marker)); }
/// <summary> /// Removes substring up to the given occurrence of the marker in the source string. /// This action is exclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="occurrence">Occurrence count to remove to.</param> /// <param name="of">Marker value for removal point.</param> public static RemoveStringToOccurrence To(this RemoveString source, int occurrence, string of) { return(new RemoveStringToOccurrence(source, occurrence, of)); }
/// <summary> /// Removes substring starting from the first occurrence of the marker in the source string. /// This allows to make Remove.Starting action exclusive. /// <para>N.B.: Default Remove().Starting() is equivalent of Remove().Starting().From(The.Beginning)</para> /// </summary> /// <param name="position">Exact position for removal point.</param> /// <param name="marker">Marker value for removal point.</param> /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used.</exception> public static RemoveStringStartingOccurrencePosition Starting(this RemoveString source, The position, string marker) { return(source.Starting(position, 1, of: marker)); }
/// <summary> /// Removes substring up to character position in the source string. /// This action is exclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="position">End position in string for removal.</param> public static RemoveStringTo To(this RemoveString source, int position) { return(new RemoveStringTo(source, position)); }
/// <summary> /// Removes substring starting from the given occurrence of the marker in the source string. /// This action is inclusive. /// <para>N.B.: Default Remove().Starting() is equivalent of Remove().Starting().From(The.Beginning)</para> /// </summary> /// <param name="occurrence">Occurrence count to start from.</param> /// <param name="of">Marker value for removal point.</param> public static RemoveStringStartingOccurrence Starting(this RemoveString source, int occurrence, string of) { return(new RemoveStringStartingOccurrence(source, occurrence, of)); }
/// <summary> /// Removes substring starting from the first marker in the source string. /// This action is inclusive. /// <para>N.B.: Default Remove().Starting() is equivalent of Remove().Starting().From(The.Beginning)</para> /// </summary> /// <param name="marker">Marker value for removal point.</param> public static RemoveStringStartingOccurrence Starting(this RemoveString source, string marker) { return(source.Starting(1, of: marker)); }
/// <summary> /// Removes substring up to the first occurrence of the marker in the source string. /// This allows to make Remove.To action inclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="position">Exact position for removal point.</param> /// <param name="marker">Marker value for removal point.</param> /// <exception cref="System.ArgumentOutOfRangeException">Thrown when Beginning or End position value is used</exception> public static RemoveStringToFirstOccurrencePosition To(this RemoveString source, The position, string marker) { return(new RemoveStringToFirstOccurrencePosition(source, position, marker)); }
/// <summary> /// Removes substring up to the first marker in the source string. /// This action is exclusive. /// <para>N.B.: Default Remove().To() is equivalent of Remove().To().From(The.Beginning)</para> /// </summary> /// <param name="marker">Marker value for removal point.</param> public static RemoveStringToFirstOccurrence To(this RemoveString source, string marker) { return(new RemoveStringToFirstOccurrence(source, marker)); }
/// <summary> /// Removes substring starting from the first marker in the source string. /// This action is inclusive. /// <para>N.B.: Default Remove().Starting() is equivalent of Remove().Starting().From(The.Beginning)</para> /// </summary> /// <param name="marker">Marker value for removal point.</param> public static RemoveStringStartingFirstOccurrence Starting(this RemoveString source, string marker) { return(new RemoveStringStartingFirstOccurrence(source, marker)); }