C# Class FakeO.Extenstions.StringExtensions

ファイルを表示 Open project: rally25rs/FakeO

Public Methods

Method Description
AlphanumericOnly ( this s ) : string
Capitalise ( this s ) : string

Capitalise the first letter of the given string.

Letterify ( this s ) : string

Get a string with every '?' replaced with a random character from the alphabet.

Numerify ( this s ) : string

Get a string with every occurence of '#' replaced with a random number.

Method Details

AlphanumericOnly() public static method

public static AlphanumericOnly ( this s ) : string
s this
return string

Capitalise() public static method

Capitalise the first letter of the given string.
public static Capitalise ( this s ) : string
s this
return string

Letterify() public static method

Get a string with every '?' replaced with a random character from the alphabet.
public static Letterify ( this s ) : string
s this
return string

Numerify() public static method

Get a string with every occurence of '#' replaced with a random number.
public static Numerify ( this s ) : string
s this
return string