/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
Dictionary.py | 28 def ConvertTextFileToDictionary(FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
33 if Line.startswith(CommentCharacter):
38 if len(Key) == 1 and Key[0][0] != CommentCharacter and Key[0] not in Keys:
|
String.py | 160 # @param CommentCharacter: Comment char, used to ignore comment content
164 def GetLibraryClassesWithModuleType(Lines, Key, KeyValues, CommentCharacter):
169 Line = CleanString(Line, CommentCharacter)
170 if Line != '' and Line[0] != CommentCharacter:
171 KeyValues.append([CleanString(Line, CommentCharacter), newKey[1]])
182 # @param CommentCharacter: Comment char, used to ignore comment content
186 def GetDynamics(Lines, Key, KeyValues, CommentCharacter):
195 Line = CleanString(Line, CommentCharacter)
196 if Line != '' and Line[0] != CommentCharacter:
197 KeyValues.append([CleanString(Line, CommentCharacter), SkuIdNameList[1]]) [all...] |
EdkIIWorkspace.py | 176 # @param CommentCharacter: Comment char, be used to ignore comment content
181 # @retval ConvertTextFileToDictionary(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
183 def ConvertTextFileToDictionary(self, FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
186 return ConvertTextFileToDictionary(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
194 # @param CommentCharacter: Comment char, be used to ignore comment content
199 # @retval ConvertDictionaryToTextFile(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
201 def ConvertDictionaryToTextFile(self, FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
204 return ConvertDictionaryToTextFile(self.WorkspaceFile(FileName), Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter)
212 # @param CommentCharacter: Comment char, be used to ignore comment content
220 def ConvertTextFileToDictionary(FileName, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter): [all...] |
TargetTxtClassObject.py | 73 # @param CommentCharacter: Comment char, be used to ignore comment content
79 def ConvertTextFileToDict(self, FileName, CommentCharacter, KeySplitCharacter):
91 if Line.startswith(CommentCharacter) or Line == '':
|
Parsing.py | 537 # @param CommentCharacter: Comment char, used to ignore comment content
541 def GetComponents(Lines, Key, KeyValues, CommentCharacter):
552 Line = CleanString(Line, CommentCharacter)
563 ListItem = CleanString(Line.rsplit('{', 1)[0], CommentCharacter)
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
String.py | 92 # @param CommentCharacter: Comment char, used to ignore comment content
94 def GetLibraryClassesWithModuleType(Lines, Key, KeyValues, CommentCharacter):
99 Line = CleanString(Line, CommentCharacter)
100 if Line != '' and Line[0] != CommentCharacter:
101 KeyValues.append([CleanString(Line, CommentCharacter), NewKey[1]])
112 # @param CommentCharacter: Comment char, used to ignore comment content
114 def GetDynamics(Lines, Key, KeyValues, CommentCharacter):
123 Line = CleanString(Line, CommentCharacter)
124 if Line != '' and Line[0] != CommentCharacter:
125 KeyValues.append([CleanString(Line, CommentCharacter), SkuIdNameList[1]]) [all...] |
Misc.py | [all...] |
Parsing.py | 417 # @param CommentCharacter: Comment char, used to ignore comment content
421 def GetComponents(Lines, KeyValues, CommentCharacter):
435 Line = CleanString(Line, CommentCharacter)
446 ListItem = CleanString(Line.rsplit('{', 1)[0], CommentCharacter)
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
MetaDataParser.py | 235 # @param CommentCharacter: Comment char, used to ignore comment content,
238 def CleanString2(Line, CommentCharacter='#', AllowCppStyleComment=False):
247 Line = Line.replace('//', CommentCharacter)
251 LineParts = Line.split(CommentCharacter, 1)
263 while Start < End and Comment.startswith(CommentCharacter, Start, End):
265 while End >= 0 and Comment.endswith(CommentCharacter, Start, End):
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/TargetTool/ |
TargetTool.py | 58 def ConvertTextFileToDict(self, FileName, CommentCharacter, KeySplitCharacter):
63 if Line.startswith(CommentCharacter) or Line.strip() == '':
68 if Key.startswith(CommentCharacter) == False and Key in self.TargetTxtDictionary.keys():
96 def RWFile(self, CommentCharacter, KeySplitCharacter, Num):
103 if Line.startswith(CommentCharacter) or Line.strip() == '':
109 if Key.startswith(CommentCharacter) == False and Key in self.TargetTxtDictionary.keys():
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
DecParserMisc.py | 107 # @param CommentCharacter: Comment char, used to ignore comment content,
110 def CleanString(Line, CommentCharacter=TAB_COMMENT_SPLIT, \
120 Line = Line.replace(TAB_COMMENT_EDK1_SPLIT, CommentCharacter)
130 if Line[Index] == CommentCharacter and not InQuote:
|