C# Class kOS.Utils

Show file Open project: Nivekk/KOS

Public Methods

Method Description
Balance ( string &str, int &i, char closeChar ) : bool
BraceMatch ( String text, int start ) : int
BuildInnerRegex ( String kegex ) : String
BuildRegex ( String kegex ) : String
Clamp ( double input, double low, double high ) : double
DelimterMatch ( string str ) : bool
FindEndOfString ( String text, int start ) : int
NewLineCount ( String input ) : int
ProcessParams ( string input ) : string[]
ProspectForResource ( String resourceName, List engines ) : double
ProspectForResource ( String resourceName, Part engine ) : double
ProspectForResource ( String resourceName, Part part, List &visited ) : double
Split ( String input, char delimiter, bool ignoreString ) : List

Method Details

Balance() public static method

public static Balance ( string &str, int &i, char closeChar ) : bool
str string
i int
closeChar char
return bool

BraceMatch() public static method

public static BraceMatch ( String text, int start ) : int
text String
start int
return int

BuildInnerRegex() public static method

public static BuildInnerRegex ( String kegex ) : String
kegex String
return String

BuildRegex() public static method

public static BuildRegex ( String kegex ) : String
kegex String
return String

Clamp() public static method

public static Clamp ( double input, double low, double high ) : double
input double
low double
high double
return double

DelimterMatch() public static method

public static DelimterMatch ( string str ) : bool
str string
return bool

FindEndOfString() public static method

public static FindEndOfString ( String text, int start ) : int
text String
start int
return int

NewLineCount() public static method

public static NewLineCount ( String input ) : int
input String
return int

ProcessParams() public static method

public static ProcessParams ( string input ) : string[]
input string
return string[]

ProspectForResource() public static method

public static ProspectForResource ( String resourceName, List engines ) : double
resourceName String
engines List
return double

ProspectForResource() public static method

public static ProspectForResource ( String resourceName, Part engine ) : double
resourceName String
engine Part
return double

ProspectForResource() public static method

public static ProspectForResource ( String resourceName, Part part, List &visited ) : double
resourceName String
part Part
visited List
return double

Split() public static method

public static Split ( String input, char delimiter, bool ignoreString ) : List
input String
delimiter char
ignoreString bool
return List