Method | Description | |
---|---|---|
EliminateNamedArgs ( string format ) : string |
Called by Format to replace named placeholders with numeric placeholders in format strings.
|
|
Find ( this str, UString what, bool ignoreCase = false ) : UString | ||
FormatCore ( this format ) : string |
This formatter works like string.Format, except that named placeholders accepted as well as numeric placeholders. This method replaces named placeholders with numbers, then calls string.Format. Named placeholders are useful for communicating information about a placeholder to a human translator. Here is an example: |
|
Join ( string separator, IEnumerable value ) : string |
Converts a series of values to strings, and concatenates them with a given separator between them. This method (but taking IEnumerable{T}) exists in the BCL starting in .NET 4 |
|
Join ( string separator, IEnumerator value ) : string | ||
Left ( this s, int count ) : string |
Returns the leftmost 'count' characters of 's', or s itself if count > s.Length.
|
|
Right ( this s, int count ) : string |
Returns the rightmost 'count' characters of 's', or s itself if count > s.Length.
|
|
SafeSubstring ( this s, int startIndex, int length = int.MaxValue ) : string |
A variation on String.Substring() that never throws. This is best explained by examples: |
|
Slice ( this str, int start, int count = int.MaxValue ) : UString | ||
SplitAt ( this s, char delimiter ) : UString>.Pair |
Gets the substrings to the left and right of a dividing character.
|
|
SplitAt ( this s, string delimiter ) : UString>.Pair |
||
TryGet ( this s, int index, char defaultValue ) : char | ||
TryGet ( this s, int index ) : char? |
public static EliminateNamedArgs ( string format ) : string | ||
format | string | |
return | string |
public static Find ( this str, UString what, bool ignoreCase = false ) : UString | ||
str | this | |
what | UString | |
ignoreCase | bool | |
return | UString |
public static FormatCore ( this format ) : string | ||
format | this | |
return | string |
public static Join ( string separator, IEnumerable value ) : string | ||
separator | string | |
value | IEnumerable | |
return | string |
public static Join ( string separator, IEnumerator value ) : string | ||
separator | string | |
value | IEnumerator | |
return | string |
public static Left ( this s, int count ) : string | ||
s | this | |
count | int | |
return | string |
public static Right ( this s, int count ) : string | ||
s | this | |
count | int | |
return | string |
public static SafeSubstring ( this s, int startIndex, int length = int.MaxValue ) : string | ||
s | this | |
startIndex | int | |
length | int | |
return | string |
public static Slice ( this str, int start, int count = int.MaxValue ) : UString | ||
str | this | |
start | int | |
count | int | |
return | UString |
public static SplitAt ( this s, char delimiter ) : UString>.Pair |
||
s | this | String to split |
delimiter | char | Dividing character. |
return | UString>.Pair |
public static SplitAt ( this s, string delimiter ) : UString>.Pair |
||
s | this | |
delimiter | string | |
return | UString>.Pair |
public static TryGet ( this s, int index, char defaultValue ) : char | ||
s | this | |
index | int | |
defaultValue | char | |
return | char |
public static TryGet ( this s, int index ) : char? | ||
s | this | |
index | int | |
return | char? |