EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions

Common::Dictionary Namespace Reference

Functions

def ConvertTextFileToDictionary
 Convert a text file to a dictionary.
def printDict
 Print the dictionary.
def printList
 Print the dictionary.

Function Documentation

def Common::Dictionary::ConvertTextFileToDictionary (   FileName,
  Dictionary,
  CommentCharacter,
  KeySplitCharacter,
  ValueSplitFlag,
  ValueSplitCharacter 
)

Convert a text file to a dictionary.

Convert a text file to a dictionary of (name:value) pairs.

Return values:
0Convert successful
1Open file failed

Definition at line 27 of file Dictionary.py.

def Common::Dictionary::printDict (   Dict)

Print the dictionary.

Print all items of dictionary one by one

Parameters:
Dict,:The dictionary to be printed

Definition at line 55 of file Dictionary.py.

def Common::Dictionary::printList (   Key,
  List 
)

Print the dictionary.

Print the items of dictionary which matched with input key

Parameters:
list,:The dictionary to be printed
key,:The key of the item to be printed

Definition at line 69 of file Dictionary.py.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines