C# Class SevenDigital.Messaging.Integration.Tests._Helpers.StringHelpers

Mostrar archivo Open project: i-e-b/SevenDigital.Messaging

Public Methods

Method Description
SubstringAfter ( this src, char c ) : string

Return the substring after to but not including the first instance of 'c'. If 'c' is not found, the entire string is returned.

SubstringAfterLast ( this src, char c ) : string

Return the substring after to but not including the last instance of 'c'. If 'c' is not found, the entire string is returned.

SubstringBefore ( this src, char c ) : string

Return the substring up to but not including the first instance of 'c'. If 'c' is not found, the entire string is returned.

SubstringBeforeLast ( this src, char c ) : string

Return the substring up to but not including the last instance of 'c'. If 'c' is not found, the entire string is returned.

Method Details

SubstringAfter() public static method

Return the substring after to but not including the first instance of 'c'. If 'c' is not found, the entire string is returned.
public static SubstringAfter ( this src, char c ) : string
src this
c char
return string

SubstringAfterLast() public static method

Return the substring after to but not including the last instance of 'c'. If 'c' is not found, the entire string is returned.
public static SubstringAfterLast ( this src, char c ) : string
src this
c char
return string

SubstringBefore() public static method

Return the substring up to but not including the first instance of 'c'. If 'c' is not found, the entire string is returned.
public static SubstringBefore ( this src, char c ) : string
src this
c char
return string

SubstringBeforeLast() public static method

Return the substring up to but not including the last instance of 'c'. If 'c' is not found, the entire string is returned.
public static SubstringBeforeLast ( this src, char c ) : string
src this
c char
return string