C# Class kOS.Utils

Afficher le fichier Open project: Nivekk/KOS

Méthodes publiques

Méthode 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 méthode

public static Balance ( string &str, int &i, char closeChar ) : bool
str string
i int
closeChar char
Résultat bool

BraceMatch() public static méthode

public static BraceMatch ( String text, int start ) : int
text String
start int
Résultat int

BuildInnerRegex() public static méthode

public static BuildInnerRegex ( String kegex ) : String
kegex String
Résultat String

BuildRegex() public static méthode

public static BuildRegex ( String kegex ) : String
kegex String
Résultat String

Clamp() public static méthode

public static Clamp ( double input, double low, double high ) : double
input double
low double
high double
Résultat double

DelimterMatch() public static méthode

public static DelimterMatch ( string str ) : bool
str string
Résultat bool

FindEndOfString() public static méthode

public static FindEndOfString ( String text, int start ) : int
text String
start int
Résultat int

NewLineCount() public static méthode

public static NewLineCount ( String input ) : int
input String
Résultat int

ProcessParams() public static méthode

public static ProcessParams ( string input ) : string[]
input string
Résultat string[]

ProspectForResource() public static méthode

public static ProspectForResource ( String resourceName, List engines ) : double
resourceName String
engines List
Résultat double

ProspectForResource() public static méthode

public static ProspectForResource ( String resourceName, Part engine ) : double
resourceName String
engine Part
Résultat double

ProspectForResource() public static méthode

public static ProspectForResource ( String resourceName, Part part, List &visited ) : double
resourceName String
part Part
visited List
Résultat double

Split() public static méthode

public static Split ( String input, char delimiter, bool ignoreString ) : List
input String
delimiter char
ignoreString bool
Résultat List