C# Class Monobjc.Tools.Generator.Utilities.Extensions

Extensions methods.
Mostra file Open project: Monobjc/monobjc-tools

Public Methods

Method Description
AppendLineFormat ( this builder, int level, String format ) : void

Appends the line using the format and the parameters.

Contains ( this attribute, String str ) : bool

Checks if the attribute contains the given value.

EscapeAll ( this str ) : String

Escape special characters in the given string.

IsGreaterThan ( this version1, System.Version version2 ) : bool

Check if a version is greater than the other.

IsLowerThan ( this version1, System.Version version2 ) : bool

Check if a version is lower than the other.

IsOlderThan ( this fileName1, String fileName2 ) : bool

Check if a filename is older than the other.

IsYoungerThan ( this fileName1, String fileName2 ) : bool

Check if a filename is younger than the other.

TrimAll ( this str ) : String

Trims all the leading and tailing spaces, as well as the the CR-LF characters.

TrimSpaces ( this element ) : String

Trims all the leading and tailing spaces, as well as double space characters.

UpperCaseFirstLetter ( this str ) : String

Uppers the case of the first letter.

WriteLineFormat ( this writer, int level, String format ) : void

Writes the line using the format and the paramters.

Method Details

AppendLineFormat() public static method

Appends the line using the format and the parameters.
public static AppendLineFormat ( this builder, int level, String format ) : void
builder this The builder.
level int The level.
format String The format.
return void

Contains() public static method

Checks if the attribute contains the given value.
public static Contains ( this attribute, String str ) : bool
attribute this
str String
return bool

EscapeAll() public static method

Escape special characters in the given string.
public static EscapeAll ( this str ) : String
str this The string to escape.
return String

IsGreaterThan() public static method

Check if a version is greater than the other.
public static IsGreaterThan ( this version1, System.Version version2 ) : bool
version1 this
version2 System.Version
return bool

IsLowerThan() public static method

Check if a version is lower than the other.
public static IsLowerThan ( this version1, System.Version version2 ) : bool
version1 this
version2 System.Version
return bool

IsOlderThan() public static method

Check if a filename is older than the other.
public static IsOlderThan ( this fileName1, String fileName2 ) : bool
fileName1 this
fileName2 String
return bool

IsYoungerThan() public static method

Check if a filename is younger than the other.
public static IsYoungerThan ( this fileName1, String fileName2 ) : bool
fileName1 this
fileName2 String
return bool

TrimAll() public static method

Trims all the leading and tailing spaces, as well as the the CR-LF characters.
public static TrimAll ( this str ) : String
str this The string.
return String

TrimSpaces() public static method

Trims all the leading and tailing spaces, as well as double space characters.
public static TrimSpaces ( this element ) : String
element this The element.
return String

UpperCaseFirstLetter() public static method

Uppers the case of the first letter.
public static UpperCaseFirstLetter ( this str ) : String
str this The string.
return String

WriteLineFormat() public static method

Writes the line using the format and the paramters.
public static WriteLineFormat ( this writer, int level, String format ) : void
writer this The writer.
level int The level.
format String The format.
return void