C# Class Rosetta.Translation.SyntaxUtility

Utility class for tokens.
Mostra file Open project: andry-tino/Rosetta Class Usage Examples

Public Methods

Method 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 method

Collapses consecutive white spaces into one.
public static CollapseMultipleWhiteSpaces ( string input ) : string
input string
return string

ToBracketEnclosedList() public static method

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

ToNewlineSemicolonSeparatedList() public static method

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

ToTokenSeparatedList() public static method

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