Lines Matching refs:CommentCharacter
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]])
272 # @param CommentCharacter: Comment char, used to ignore comment content,
275 def CleanString(Line, CommentCharacter=DataType.TAB_COMMENT_SPLIT, AllowCppStyleComment=False):
284 Line = Line.replace(DataType.TAB_COMMENT_EDK1_SPLIT, CommentCharacter)
292 elif Line[Index] == CommentCharacter and not InString:
308 # @param CommentCharacter: Comment char, used to ignore comment content,
311 def CleanString2(Line, CommentCharacter=DataType.TAB_COMMENT_SPLIT, AllowCppStyleComment=False):
320 Line = Line.replace(DataType.TAB_COMMENT_EDK1_SPLIT, CommentCharacter)
324 LineParts = Line.split(CommentCharacter, 1)
336 while Start < End and Comment.startswith(CommentCharacter, Start, End):
338 while End >= 0 and Comment.endswith(CommentCharacter, Start, End):
355 # @param CommentCharacter: Comment char, used to ignore comment content
357 def GetMultipleValuesOfKeyFromLines(Lines, Key, KeyValues, CommentCharacter):
365 Line = CleanString(Line, CommentCharacter)
366 if Line != '' and Line[0] != CommentCharacter:
377 # @param CommentCharacter: Comment char, used to ignore comment content
379 def GetDefineValue(String, Key, CommentCharacter):
380 if CommentCharacter:
394 # @param CommentCharacter: Comment char, be used to ignore comment content
403 def GetSingleValueOfKeyFromLines(Lines, Dictionary, CommentCharacter, KeySplitCharacter, \
418 DefineValues.append(GetDefineValue(Line, DataType.TAB_INF_DEFINES_DEFINE, CommentCharacter))
423 SpecValues.append(GetDefineValue(Line, DataType.TAB_INF_DEFINES_SPEC, CommentCharacter))
432 if len(Key) == 1 and Key[0][0] != CommentCharacter:
436 LineList[1] = CleanString(LineList[1], CommentCharacter)
440 Value = CleanString(LineList[1], CommentCharacter).splitlines()