C# Class Jackett.Utils.ParseUtil

Mostra file Open project: Jackett/Jackett Class Usage Examples

Public Methods

Method Description
CoerceDouble ( string str ) : double
CoerceFloat ( string str ) : float
CoerceInt ( string str ) : int
CoerceLong ( string str ) : long
NormalizeMultiSpaces ( string s ) : string
NormalizeNumber ( string s ) : string
NormalizeSpace ( string s ) : string
RemoveInvalidXmlChars ( string text ) : string
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

NormalizeMultiSpaces() public static method

public static NormalizeMultiSpaces ( string s ) : string
s string
return string

NormalizeNumber() public static method

public static NormalizeNumber ( string s ) : string
s string
return string

NormalizeSpace() public static method

public static NormalizeSpace ( string s ) : string
s string
return string

RemoveInvalidXmlChars() public static method

public static RemoveInvalidXmlChars ( string text ) : string
text string
return string

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