Method | Description | |
---|---|---|
EnsureEndsNotWith ( this value, string suffix ) : string |
Returns a new string which is guaranteed not to end with the given suffix. If the suffix is already missing, the same string is returned.
|
|
EnsureEndsNotWith ( this value, string suffix, bool ignoreCase ) : string | ||
EnsureEndsWith ( this value, string suffix ) : string |
Returns a new string which is guaranteed to end with the given suffix. If the suffix is already present, the same string is returned.
|
|
EnsureEndsWith ( this value, string suffix, StringEnsureOptions options ) : string | ||
EnsureStartsNotWith ( this value, string prefix ) : string |
Returns a new string which is guaranteed not to begin with the given prefix. If the prefix is already missing, the same string is returned.
|
|
EnsureStartsWith ( this value, string prefix ) : string |
Returns a new string which is guaranteed to begin with the given prefix. If the prefix is already present, the same string is returned.
|
|
EnsureStartsWith ( this value, string prefix, StringEnsureOptions options ) : string | ||
Indent ( this value, int width ) : string | ||
IsEmail ( this text ) : bool | ||
IsNumeric ( this value ) : bool | ||
IsUri ( this uri ) : bool | ||
JoinNonEmpty ( this |
||
ToDate ( this dateText ) : DateTime? | ||
ToInt ( this value ) : int | ||
ToInt32 ( this value ) : int | ||
Truncate ( this text, int maxLength ) : string |
Truncates the string to a specified length and replace the truncated to a ...
|
|
Truncate ( this text, int maxLength, string suffix ) : string |
Truncates the string to a specified length and replaces the truncated to a ...
|
|
WordWrap ( this text, int maxLineLength ) : List |
Return a list of wrapped lines
|
|
Wrap ( this text, int maxLineLength ) : string |
Returns the given text with lines separated by Environment.NewLine and a maximum length of maxLineLength. Uses WordWrap internally.
|
public static EnsureEndsNotWith ( this value, string suffix ) : string | ||
value | this | |
suffix | string | |
return | string |
public static EnsureEndsNotWith ( this value, string suffix, bool ignoreCase ) : string | ||
value | this | |
suffix | string | |
ignoreCase | bool | |
return | string |
public static EnsureEndsWith ( this value, string suffix ) : string | ||
value | this | |
suffix | string | |
return | string |
public static EnsureEndsWith ( this value, string suffix, StringEnsureOptions options ) : string | ||
value | this | |
suffix | string | |
options | StringEnsureOptions | |
return | string |
public static EnsureStartsNotWith ( this value, string prefix ) : string | ||
value | this | |
prefix | string | |
return | string |
public static EnsureStartsWith ( this value, string prefix ) : string | ||
value | this | |
prefix | string | |
return | string |
public static EnsureStartsWith ( this value, string prefix, StringEnsureOptions options ) : string | ||
value | this | |
prefix | string | |
options | StringEnsureOptions | |
return | string |
public static Indent ( this value, int width ) : string | ||
value | this | |
width | int | |
return | string |
public static IsNumeric ( this value ) : bool | ||
value | this | |
return | bool |
public static JoinNonEmpty ( this |
||
values | this |
|
separator | string | |
return | string |
public static ToDate ( this dateText ) : DateTime? | ||
dateText | this | |
return | DateTime? |
public static Truncate ( this text, int maxLength ) : string | ||
text | this | string that will be truncated |
maxLength | int | total length of characters to maintain before the truncate happens |
return | string |
public static Truncate ( this text, int maxLength, string suffix ) : string | ||
text | this | string that will be truncated |
maxLength | int | total length of characters to maintain before the truncate happens |
suffix | string | |
return | string |
public static WordWrap ( this text, int maxLineLength ) : List |
||
text | this | |
maxLineLength | int | |
return | List |
public static Wrap ( this text, int maxLineLength ) : string | ||
text | this | |
maxLineLength | int | |
return | string |