Méthode |
Description |
|
SplitOnFirst ( this s, string separator ) : string>.Tuple |
|
|
SplitOnLast ( this s, string separator ) : string>.Tuple |
|
|
SplitWithIgnoreRegions ( this s, char separators ) : IEnumerable |
|
|
Token ( this s, string separator, int token ) : string |
small convenience method to access token (parts) of a string "la-li-lu".Token('-', 1) == "la" "la-li-lu".Token('-', 4) == string.empty "la-li-lu".Token('-', 0) == "la-li-lu" "la-li-lu".Token('-', -1) == "lu" String.empty.Token('-', x) == string.empty // for all x the index is not nullbased!! so the first token is 1 and the last token is -1 |
|
Token ( this s, string separator, int token, string fallback ) : string |
small convenience method to access token (parts) of a string "la-li-lu".Token('-', 1) == "la" "la-li-lu".Token('-', 4) == fallback "la-li-lu".Token('-', 0) == "la-li-lu" "la-li-lu".Token('-', -1) == "lu" String.empty.Token('-', x) == fallback // for all x the index is not nullbased!! so the first token is 1 and the last token is -1 |
|
TokenReturnInputIfFail ( this s, string separator, int token ) : string |
small convenience method to access token (parts) of a string "la-li-lu".Token('-', 1) == "la" "la-li-lu".Token('-', 4) == input "la-li-lu".Token('-', 0) == "la-li-lu" "la-li-lu".Token('-', -1) == "lu" String.empty.Token('-', x) == input // for all x the index is not nullbased!! so the first token is 1 and the last token is -1 |
|