C# Class BF2Statistics.Validator

Show file Open project: BF2Statistics/ControlCenter

Public Methods

Method Description
IsAlphaOnly ( string line ) : bool

This method determines if the given string contains characters only. Will return false if any numbers are in the string

IsFloat ( string line ) : bool

Determines if the given string can be converted to a float

IsNumeric ( string line ) : bool

Determines if the givin string is numberic, and contains only numbers

IsValidClanTag ( string line ) : bool
IsValidEmail ( string email ) : bool

This method returns whether a provided email address is valid

IsValidPID ( string pid ) : bool
IsValidPrefix ( string line ) : bool

Method Details

IsAlphaOnly() public static method

This method determines if the given string contains characters only. Will return false if any numbers are in the string
public static IsAlphaOnly ( string line ) : bool
line string The string to be checked
return bool

IsFloat() public static method

Determines if the given string can be converted to a float
public static IsFloat ( string line ) : bool
line string The string to be checked
return bool

IsNumeric() public static method

Determines if the givin string is numberic, and contains only numbers
public static IsNumeric ( string line ) : bool
line string The string to be checked
return bool

IsValidClanTag() public static method

public static IsValidClanTag ( string line ) : bool
line string
return bool

IsValidEmail() public static method

This method returns whether a provided email address is valid
public static IsValidEmail ( string email ) : bool
email string
return bool

IsValidPID() public static method

public static IsValidPID ( string pid ) : bool
pid string
return bool

IsValidPrefix() public static method

public static IsValidPrefix ( string line ) : bool
line string
return bool