C# Class Iaik.Utils.StringHelper

Static class which provides some string helper methods
显示文件 Open project: areiter/InMemoryFuzzing

Public Methods

Method Description
IndentPerLine ( string src, string indention ) : string

Intends each line of the source string by the specified indention string

ReplaceVariables ( string expression, VariableDetectedCB cb ) : string

Looks for {[..]} constructions in the specified expression, and calls the callback for each of them replacing its occurance with the return value of the callback

SplitToKeyValue ( string s, string delimiter ) : string>?.KeyValuePair

Splits the specified string by the specified delimiter into key[delimiter]value

StringToUInt64 ( string val ) : System.UInt64

Method Details

IndentPerLine() public static method

Intends each line of the source string by the specified indention string
public static IndentPerLine ( string src, string indention ) : string
src string
indention string
return string

ReplaceVariables() public static method

Looks for {[..]} constructions in the specified expression, and calls the callback for each of them replacing its occurance with the return value of the callback
public static ReplaceVariables ( string expression, VariableDetectedCB cb ) : string
expression string
cb VariableDetectedCB
return string

SplitToKeyValue() public static method

Splits the specified string by the specified delimiter into key[delimiter]value
public static SplitToKeyValue ( string s, string delimiter ) : string>?.KeyValuePair
s string
delimiter string
return string>?.KeyValuePair

StringToUInt64() public static method

public static StringToUInt64 ( string val ) : System.UInt64
val string
return System.UInt64