C# Class SevenUpdate.Sdk.RegistryParser

Parses a reg file.
ファイルを表示 Open project: robertbaker/SevenUpdate

Public Methods

Method Description
Parse ( string file ) : IEnumerable

Parses a registry file into a RegistryItem.

Private Methods

Method Description
ApplyFixes ( string line, bool skipQuotesConversion ) : string

Apply fixes to the line.

EmptyString ( string item ) : bool

Method for finding empty strings.

MatchBinary ( RegistryItem &methodResult, string valueName, string valueData ) : bool

Matches Binary data from the key/value.

MatchDWord ( RegistryItem &methodResult, string valueName, string valueData ) : bool

Matches DWord from the key/value.

MatchMutiString ( RegistryItem &methodResult, string valueName, string valueData ) : bool

Matches MutiString from the key/value.

MatchStringHex ( RegistryItem &methodResult, string valueName, string valueData ) : bool

Matches hex data from the key/value.

MathExpandString ( RegistryItem &methodResult, string valueName, string valueData ) : bool

Matches ExpandString from the key/value.

ProcessBinaryType ( char hexType, string &valueNameData, string &valueData, RegistryValueKind flag, RegistryItem &methodResult ) : RegistryItem

Common processing for normal binary types.

ProcessRegBlock ( string regBlock ) : void

Internal method for processing extracted REG format blocks. Real processing takes place here.

ProcessRegLine ( string line ) : RegistryItem

Internal method for extracting the data part of the reg line.

PutOnOneLineAndTrim ( string valueData ) : string

Puts ValueData on single line and removes from the beginning and end the following: space, tab, CR, LF, extra commas.

String2Byte ( string value ) : byte

Method for converting the hex byte string to a byte value.

String2ByteForAscii ( string value ) : byte

Method for converting the hex byte string to a byte value + a check that converts all above ASCII bytes to ?.

String2ByteForAsciiAllowCrlf ( string value ) : byte

Method for converting the hex byte string to a byte value + a check that converts all above ASCII bytes to ? but allows CRLF characters.

Method Details

Parse() public method

Parses a registry file into a RegistryItem.
public Parse ( string file ) : IEnumerable
file string The reg file.
return IEnumerable