C# Class WF.Compiler.Builders

显示文件 Open project: WFoundation/WF.Compiler

Public Methods

Method Description
GetEarwigoDecodedString ( string str ) : string

Decode the Earwigo string.

GetEarwigoEncodedString ( string str ) : string

Encode the Earwigo string.

GetUrwigoDecodeString ( string str, List dtable ) : string

Gets the Urwigo string decoded.

GetUrwigoFormatedString ( string byteCode ) : string

Gets the Urwigo formated string, like \032\045, from a normal byte containing string.

The string could also contain \032 from beginning, so the function has to check for this.

GetUrwigoObfuscatedStrings ( string lua, string funcName ) : List

Gets the Urwigo obfuscated strings.

GetUrwigoObfuscationFunction ( string lua ) : string

Gets the urwigo obfuscation function name.

GetUrwigoObfuscationTable ( string lua ) : List

Gets the Urwigo obfuscation table.

IsEarwigo ( string lua ) : bool

Determines whether this Lua code is from Earwigo.

IsUrwigo ( string lua ) : bool

Determines whether this Lua code is from Urwigo.

RemoveEarwigoObfuscation ( string lua ) : string

Removes the Urwigo obfuscation function and replace all strings with plain text.

Private Methods

Method Description
GetEarwigoObfuscatedString ( string str, System.Boolean encrypt ) : string

Encode/Decode the Earwigo string.

Method Details

GetEarwigoDecodedString() public static method

Decode the Earwigo string.
public static GetEarwigoDecodedString ( string str ) : string
str string String to decode.
return string

GetEarwigoEncodedString() public static method

Encode the Earwigo string.
public static GetEarwigoEncodedString ( string str ) : string
str string String.
return string

GetUrwigoDecodeString() public static method

Gets the Urwigo string decoded.
public static GetUrwigoDecodeString ( string str, List dtable ) : string
str string String.
dtable List Dtable.
return string

GetUrwigoFormatedString() public static method

Gets the Urwigo formated string, like \032\045, from a normal byte containing string.
The string could also contain \032 from beginning, so the function has to check for this.
public static GetUrwigoFormatedString ( string byteCode ) : string
byteCode string
return string

GetUrwigoObfuscatedStrings() public static method

Gets the Urwigo obfuscated strings.
public static GetUrwigoObfuscatedStrings ( string lua, string funcName ) : List
lua string Lua code.
funcName string Func name.
return List

GetUrwigoObfuscationFunction() public static method

Gets the urwigo obfuscation function name.
public static GetUrwigoObfuscationFunction ( string lua ) : string
lua string Lua code.
return string

GetUrwigoObfuscationTable() public static method

Gets the Urwigo obfuscation table.
public static GetUrwigoObfuscationTable ( string lua ) : List
lua string Lua code.
return List

IsEarwigo() public static method

Determines whether this Lua code is from Earwigo.
public static IsEarwigo ( string lua ) : bool
lua string Lua code.
return bool

IsUrwigo() public static method

Determines whether this Lua code is from Urwigo.
public static IsUrwigo ( string lua ) : bool
lua string Lua code.
return bool

RemoveEarwigoObfuscation() public static method

Removes the Urwigo obfuscation function and replace all strings with plain text.
public static RemoveEarwigoObfuscation ( string lua ) : string
lua string Lua code.
return string