C# Class Jackett2.Core.ParseUtil

Show file Open project: Jackett/Jackett2

Public Methods

Method Description
CoerceDouble ( string str ) : double
CoerceFloat ( string str ) : float
CoerceInt ( string str ) : int
CoerceLong ( string str ) : long
TryCoerceDouble ( string str, double &result ) : bool
TryCoerceFloat ( string str, float &result ) : bool
TryCoerceInt ( string str, int &result ) : bool
TryCoerceLong ( string str, long &result ) : bool

Method Details

CoerceDouble() public static method

public static CoerceDouble ( string str ) : double
str string
return double

CoerceFloat() public static method

public static CoerceFloat ( string str ) : float
str string
return float

CoerceInt() public static method

public static CoerceInt ( string str ) : int
str string
return int

CoerceLong() public static method

public static CoerceLong ( string str ) : long
str string
return long

TryCoerceDouble() public static method

public static TryCoerceDouble ( string str, double &result ) : bool
str string
result double
return bool

TryCoerceFloat() public static method

public static TryCoerceFloat ( string str, float &result ) : bool
str string
result float
return bool

TryCoerceInt() public static method

public static TryCoerceInt ( string str, int &result ) : bool
str string
result int
return bool

TryCoerceLong() public static method

public static TryCoerceLong ( string str, long &result ) : bool
str string
result long
return bool