C# Class Rosetta.Translation.SyntaxUtility

Utility class for tokens.
Afficher le fichier Open project: andry-tino/Rosetta Class Usage Examples

Méthodes publiques

Méthode Description
CollapseMultipleWhiteSpaces ( string input ) : string

Collapses consecutive white spaces into one.

ToBracketEnclosedList ( IEnumerable items, bool includeSeparatorAtLast = false ) : string

ToNewlineSemicolonSeparatedList ( IEnumerable items, bool includeSeparatorAtLast = false ) : string

ToTokenSeparatedList ( IEnumerable items, string separator, bool includeSeparatorAtLast = false ) : string

Method Details

CollapseMultipleWhiteSpaces() public static méthode

Collapses consecutive white spaces into one.
public static CollapseMultipleWhiteSpaces ( string input ) : string
input string
Résultat string

ToBracketEnclosedList() public static méthode

public static ToBracketEnclosedList ( IEnumerable items, bool includeSeparatorAtLast = false ) : string
items IEnumerable
includeSeparatorAtLast bool
Résultat string

ToNewlineSemicolonSeparatedList() public static méthode

public static ToNewlineSemicolonSeparatedList ( IEnumerable items, bool includeSeparatorAtLast = false ) : string
items IEnumerable
includeSeparatorAtLast bool
Résultat string

ToTokenSeparatedList() public static méthode

public static ToTokenSeparatedList ( IEnumerable items, string separator, bool includeSeparatorAtLast = false ) : string
items IEnumerable
separator string
includeSeparatorAtLast bool
Résultat string