Home | History | Annotate | Download | only in Common

Lines Matching refs:CommentCharacter

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]])
326 # @param CommentCharacter: Comment char, used to ignore comment content, default is DataType.TAB_COMMENT_SPLIT
330 def CleanString(Line, CommentCharacter=DataType.TAB_COMMENT_SPLIT, AllowCppStyleComment=False, BuildOption=False):
339 Line = Line.replace(DataType.TAB_COMMENT_EDK_SPLIT, CommentCharacter)
348 elif Line[Index] == CommentCharacter and InString :
350 elif Line[Index] == CommentCharacter and not InString :
383 # @param CommentCharacter: Comment char, used to ignore comment content, default is DataType.TAB_COMMENT_SPLIT
387 def CleanString2(Line, CommentCharacter=DataType.TAB_COMMENT_SPLIT, AllowCppStyleComment=False):
396 Line = Line.replace(DataType.TAB_COMMENT_EDK_SPLIT, CommentCharacter)
406 elif Line[Index] == CommentCharacter and InString:
408 elif Line[Index] == CommentCharacter and not InString:
423 # @param CommentCharacter: Comment char, used to ignore comment content
427 def GetMultipleValuesOfKeyFromLines(Lines, Key, KeyValues, CommentCharacter):
431 Line = CleanString(Line, CommentCharacter)
432 if Line != '' and Line[0] != CommentCharacter:
444 # @param CommentCharacter: Comment char, used to ignore comment content
448 def GetDefineValue(String, Key, CommentCharacter):
489 # @param CommentCharacter: Comment char, be used to ignore comment content
496 def GetSingleValueOfKeyFromLines(Lines, Dictionary, CommentCharacter, KeySplitCharacter, ValueSplitFlag, ValueSplitCharacter):
510 DefineValues.append(GetDefineValue(Line, DataType.TAB_INF_DEFINES_DEFINE, CommentCharacter))
515 SpecValues.append(GetDefineValue(Line, DataType.TAB_INF_DEFINES_SPEC, CommentCharacter))
524 if len(Key) == 1 and Key[0][0] != CommentCharacter:
528 LineList[1] = CleanString(LineList[1], CommentCharacter)
532 Value = CleanString(LineList[1], CommentCharacter).splitlines()