Метод | Описание | |
---|---|---|
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 | |
Результат | string |
public static Find ( this str, UString what, bool ignoreCase = false ) : UString | ||
str | this | |
what | UString | |
ignoreCase | bool | |
Результат | UString |
public static FormatCore ( this format ) : string | ||
format | this | |
Результат | string |
public static Join ( string separator, IEnumerable value ) : string | ||
separator | string | |
value | IEnumerable | |
Результат | string |
public static Join ( string separator, IEnumerator value ) : string | ||
separator | string | |
value | IEnumerator | |
Результат | string |
public static Left ( this s, int count ) : string | ||
s | this | |
count | int | |
Результат | string |
public static Right ( this s, int count ) : string | ||
s | this | |
count | int | |
Результат | string |
public static SafeSubstring ( this s, int startIndex, int length = int.MaxValue ) : string | ||
s | this | |
startIndex | int | |
length | int | |
Результат | string |
public static Slice ( this str, int start, int count = int.MaxValue ) : UString | ||
str | this | |
start | int | |
count | int | |
Результат | UString |
public static SplitAt ( this s, char delimiter ) : UString>.Pair |
||
s | this | String to split |
delimiter | char | Dividing character. |
Результат | UString>.Pair |
public static SplitAt ( this s, string delimiter ) : UString>.Pair |
||
s | this | |
delimiter | string | |
Результат | UString>.Pair |
public static TryGet ( this s, int index, char defaultValue ) : char | ||
s | this | |
index | int | |
defaultValue | char | |
Результат | char |
public static TryGet ( this s, int index ) : char? | ||
s | this | |
index | int | |
Результат | char? |