C# Class WikipediaAvsAnTrieExtractor.NodeSerializer

Show file Open project: EamonNerbonne/a-vs-an Class Usage Examples

Public Methods

Method Description
Deserialize ( string rawDict ) : Node
Serialize ( Node node ) : string
SerializeDense ( Node node ) : string
SerializeDenseImpl ( StringBuilder sb, Node node ) : void
SerializeDenseNoStats ( Node node ) : string
SerializeDenseNoStatsImpl ( StringBuilder sb, Node node ) : void
SerializeReadably ( Node node ) : string

Private Methods

Method Description
DenseIntDigitToString ( StringBuilder sb, int num ) : void
DenseIntToString ( StringBuilder sb, int num ) : void
SerializeImpl ( Node node, bool withNewlines ) : string
SerializeImpl ( Node node, StringBuilder sb, string prefix, bool withNewlines ) : void
parseHex ( string str, int start, int end ) : int

Method Details

Deserialize() public static method

public static Deserialize ( string rawDict ) : Node
rawDict string
return Node

Serialize() public static method

public static Serialize ( Node node ) : string
node Node
return string

SerializeDense() public static method

public static SerializeDense ( Node node ) : string
node Node
return string

SerializeDenseImpl() public static method

public static SerializeDenseImpl ( StringBuilder sb, Node node ) : void
sb System.Text.StringBuilder
node Node
return void

SerializeDenseNoStats() public static method

public static SerializeDenseNoStats ( Node node ) : string
node Node
return string

SerializeDenseNoStatsImpl() public static method

public static SerializeDenseNoStatsImpl ( StringBuilder sb, Node node ) : void
sb System.Text.StringBuilder
node Node
return void

SerializeReadably() public static method

public static SerializeReadably ( Node node ) : string
node Node
return string