/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | String.py | 168 for Line in LineList: 169 Line = CleanString(Line, CommentCharacter) 170 if Line != '' and Line[0] != CommentCharacter: 171 KeyValues.append([CleanString(Line, CommentCharacter), newKey[1]]) 194 for Line in LineList: 195 Line = CleanString(Line, CommentCharacter) 196 if Line != '' and Line[0] != CommentCharacter: 197 KeyValues.append([CleanString(Line, CommentCharacter), SkuIdNameList[1]]) 330 def CleanString(Line, CommentCharacter=DataType.TAB_COMMENT_SPLIT, AllowCppStyleComment=False, Buil… argument 334 Line = Line.strip(); [all …]
|
D | Parsing.py | 437 for Line in Lines: 438 Line = Line[0] 443 … if Line.upper().find(TAB_INCLUDE.upper() + ' ') > -1 or Line.upper().find(TAB_DEFINE + ' ') > -1: 447 ListItem = Line 451 if Line.endswith('{'): 453 ListItem = CleanString(Line.rsplit('{', 1)[0], DataType.TAB_COMMENT_SPLIT) 459 if Line.find('<LibraryClasses>') != -1: 462 if Line.find('<BuildOptions>') != -1: 465 if Line.find('<PcdsFeatureFlag>') != -1: 468 if Line.find('<PcdsPatchableInModule>') != -1: [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/ |
D | Misc.c | 51 HEFI_EDITOR_LINE *Line; in HLineAdvance() local 53 Line = HMainEditor.BufferImage->CurrentLine; in HLineAdvance() 54 if (Line == NULL) { in HLineAdvance() 62 if (Line->Link.ForwardLink == HMainEditor.BufferImage->ListHead) { in HLineAdvance() 66 Line = CR (Line->Link.ForwardLink, HEFI_EDITOR_LINE, Link, EFI_EDITOR_LINE_LIST); in HLineAdvance() 69 return Line; in HLineAdvance() 86 HEFI_EDITOR_LINE *Line; in HLineRetreat() local 88 Line = HMainEditor.BufferImage->CurrentLine; in HLineRetreat() 89 if (Line == NULL) { in HLineRetreat() 97 if (Line->Link.BackLink == HMainEditor.BufferImage->ListHead) { in HLineRetreat() [all …]
|
D | BufferImage.c | 251 IN HEFI_EDITOR_LINE *Line, in HBufferImagePrintLine() argument 310 for (Index = 0; Index < 0x08 && Index < Line->Size; Index++) { in HBufferImagePrintLine() 327 if (Line->Buffer[Index] < 0x10) { in HBufferImagePrintLine() 333 ShellPrintEx ((INT32)Pos - 1, (INT32)Row - 1, L"%x ", Line->Buffer[Index]); in HBufferImagePrintLine() 335 ShellPrintEx ((INT32)Pos - 1, (INT32)Row - 1, L"%x ", Line->Buffer[Index]); in HBufferImagePrintLine() 347 while (Index < 0x10 && Index < Line->Size) { in HBufferImagePrintLine() 364 if (Line->Buffer[Index] < 0x10) { in HBufferImagePrintLine() 369 ShellPrintEx ((INT32)Pos - 1, (INT32)Row - 1, L"%x ", Line->Buffer[Index]); in HBufferImagePrintLine() 388 for (Index = 0; Index < 0x10 && Index < Line->Size; Index++) { in HBufferImagePrintLine() 394 if (Line->Buffer[Index] >= L' ') { in HBufferImagePrintLine() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ModifyInf/ |
D | ModifyInf.c | 54 char *Line; in ReadLine() local 56 Line = LineBuffer; in ReadLine() 59 *Line++ = (char) CharC; in ReadLine() 65 *Line = 0; in ReadLine() 79 char *Line, in WriteLine() argument 99 fwrite (Line, strlen (Line), 1, fp); in WriteLine() 112 char *Line, in ApplyPattern() argument 151 Ptr = Line; in ApplyPattern() 158 SectionLength = Ptr - Line + 1; in ApplyPattern() 160 strncpy (Section, Line, SectionLength); in ApplyPattern() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
D | UniClassObject.py | 327 def GetLangDef(self, File, Line): argument 328 Lang = distutils.util.split_quoted((Line.split(u"//")[0])) 341 LineNo = GetLineNo(FileIn, Line, False) 345 … ExtraData="""%s\n\t*Correct format is like '#langdef en-US "English"'""" % Line, 346 File = File, Line = LineNo) 459 for Line in FileIn: 460 Line = Line.strip() 461 if Line == u'': 463 … if Line.startswith(DT.TAB_COMMENT_EDK1_SPLIT) and (Line.find(DT.TAB_HEADER_COMMENT) > -1) \ 466 if not Line.startswith(DT.TAB_COMMENT_EDK1_SPLIT) and HeaderStart and not HeaderEnd: [all …]
|
D | String.py | 98 for Line in LineList: 99 Line = CleanString(Line, CommentCharacter) 100 if Line != '' and Line[0] != CommentCharacter: 101 KeyValues.append([CleanString(Line, CommentCharacter), NewKey[1]]) 122 for Line in LineList: 123 Line = CleanString(Line, CommentCharacter) 124 if Line != '' and Line[0] != CommentCharacter: 125 KeyValues.append([CleanString(Line, CommentCharacter), SkuIdNameList[1]]) 167 def ReplaceMacro(String, MacroDefinitions=None, SelfReplacement=False, Line=None, FileName=None, Fl… argument 201 … Logger.Debug(5, "Delete undefined MACROs in file %s line %d: %s!" % (FileName, Line[1], Line[0])) [all …]
|
D | Parsing.py | 292 for Line in Lines: 293 Line = Line[0] 297 if Line.upper().find(DataType.TAB_INCLUDE.upper() + ' ') > -1 or \ 298 Line.upper().find(DataType.TAB_DEFINE + ' ') > -1: 302 ListItem = Line 306 if Line.endswith('{'): 308 ListItem = CleanString(Line.rsplit('{', 1)[0], \ 315 if Line.find('<LibraryClasses>') != -1: 321 if Line.find('<BuildOptions>') != -1: 327 if Line.find('<PcdsFeatureFlag>') != -1: [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
D | InfParser.py | 175 OrigLines = [Line for Line in FileLinesList] 186 for Line in FileLinesList: 188 Line = Line.strip() 195 if (Line == '' or not Line) and LineNo == len(FileLinesList): 201 if Line.startswith(DT.TAB_SPECIAL_COMMENT) and \ 202 (Line.find(DT.TAB_HEADER_COMMENT) > -1) and \ 210 SectionLines.append((Line, LineNo)) 217 …if (Line.startswith(DT.TAB_COMMENT_SPLIT) and CurrentSection == DT.MODEL_META_DATA_FILE_HEADER) an… 218 HeaderCommentStart and not Line.startswith(DT.TAB_SPECIAL_COMMENT) and not\ 220 SectionLines.append((Line, LineNo)) [all …]
|
D | InfAsBuiltProcess.py | 87 for Line in FileLinesList: 88 if ReFindFileGuidPattern.match(Line): 89 FileGuidString = Line 90 if ReFindVerStringPattern.match(Line): 91 VerString = Line 121 for Line in FileLinesList: 123 Line = Line.strip() 125 if Line.startswith('['): 129 if Line.startswith("#"): 132 if not Line: [all …]
|
D | InfGuidPpiProtocolSectionParser.py | 50 for Line in SectionString: 51 LineContent = Line[0] 52 LineNo = Line[1] 59 CommentsList.append(Line) 120 Line=LineIndex) 137 for Line in SectionString: 138 LineContent = Line[0] 139 LineNo = Line[1] 146 CommentsList.append(Line) 205 Line=LineIndex) [all …]
|
D | DecParserMisc.py | 59 Line = self.Content[self.LineIndex] 61 return Line 72 def SetNext(self, Line, HeadComment, TailComment): argument 73 self.NextLine = Line 110 def CleanString(Line, CommentCharacter=TAB_COMMENT_SPLIT, \ argument 115 Line = Line.strip() 120 Line = Line.replace(TAB_COMMENT_EDK1_SPLIT, CommentCharacter) 126 for Index in range(0, len(Line)): 127 if Line[Index] == '"': 130 if Line[Index] == CommentCharacter and not InQuote: [all …]
|
D | InfPcdSectionParser.py | 60 File=FileName, Line=LineIndex) 70 for Line in SectionString: 71 PcdLineContent = Line[0] 72 PcdLineNo = Line[1] 78 CommentsList.append(Line) 129 for Line in SectionString: 130 LineContent = Line[0].strip() 131 LineNo = Line[1] 159 Line=LineNo, 168 Line=LineNo, [all …]
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/ |
D | FileBuffer.c | 164 CONST EFI_EDITOR_LINE *Line; in InternalEditorMiscLineAdvance() local 170 for (Line = CurrentLine, Index = 0; Index < Count; Index++) { in InternalEditorMiscLineAdvance() 174 if (Line->Link.ForwardLink == LineList) { in InternalEditorMiscLineAdvance() 178 Line = CR (Line->Link.ForwardLink, EFI_EDITOR_LINE, Link, LINE_LIST_SIGNATURE); in InternalEditorMiscLineAdvance() 181 return ((EFI_EDITOR_LINE *)Line); in InternalEditorMiscLineAdvance() 203 CONST EFI_EDITOR_LINE *Line; in InternalEditorMiscLineRetreat() local 209 for (Line = CurrentLine, Index = 0; Index < Count; Index++) { in InternalEditorMiscLineRetreat() 213 if (Line->Link.BackLink == LineList) { in InternalEditorMiscLineRetreat() 217 Line = CR (Line->Link.BackLink, EFI_EDITOR_LINE, Link, LINE_LIST_SIGNATURE); in InternalEditorMiscLineRetreat() 220 return ((EFI_EDITOR_LINE *)Line); in InternalEditorMiscLineRetreat() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
D | MyAlloc.c | 44 UINTN Line in MyCheck() argument 81 (unsigned)Line in MyCheck() 87 if (Line == 0) { in MyCheck() 93 (unsigned)Line in MyCheck() 105 (unsigned)Line in MyCheck() 128 (unsigned)Line, in MyCheck() 130 (unsigned) Tmp->Line, in MyCheck() 148 (unsigned)Line in MyCheck() 155 (unsigned) Tmp->Line, in MyCheck() 172 UINTN Line in MyAlloc() argument [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/Common/ |
D | MyAlloc.c | 51 UINTN Line in MyCheck() argument 83 if (File == NULL || Line == 0) { in MyCheck() 89 Line in MyCheck() 101 Line in MyCheck() 124 Line, in MyCheck() 126 Tmp->Line, in MyCheck() 144 Line in MyCheck() 151 Tmp->Line, in MyCheck() 168 UINTN Line in MyAlloc() argument 200 if (Size == 0 || File == NULL || Line == 0) { in MyAlloc() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/AutoGen/ |
D | UniClassObject.py | 240 def GetLangDef(self, File, Line): argument 241 Lang = distutils.util.split_quoted((Line.split(u"//")[0])) 249 LineNo = GetLineNo(FileIn, Line, False) 251 …Data="""%s\n\t*Correct format is like '#langdef en-US "English"'""" % Line, File=File, Line=LineNo) 334 Line = File.readline() 335 if Line == '': 338 Ucs2Info.encode(Line) 373 def StripComments(self, Line): argument 375 CommentPos = Line.find(Comment) 380 if ((Line.count(u'"', 0, CommentPos) - Line.count(u'\\"', 0, CommentPos)) & 1) == 1: [all …]
|
D | IdfClassObject.py | 91 for Line in FileIn.splitlines(): 92 Line = Line.strip() 93 Line = self.StripComments(Line) 94 if len(Line) == 0: 97 LineNo = GetLineNo(FileIn, Line, False) 98 if not Line.startswith('#image '): 99 …File Parser", PARSER_ERROR, 'The %s in Line %s of File %s is invalid.' % (Line, LineNo, File.Path)) 101 if Line.find('#image ') >= 0: 102 LineDetails = Line.split() 123 def StripComments(self, Line): argument [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/FrameworkUefiLib/ |
D | Console.c | 329 CHAR16 *Line; in CreatePopUp() local 395 Line = AllocateZeroPool ((MaxLength + 3) * sizeof (CHAR16)); in CreatePopUp() 396 ASSERT (Line != NULL); in CreatePopUp() 401 SetMem16 (Line, (MaxLength + 2) * 2, BOXDRAW_HORIZONTAL); in CreatePopUp() 402 Line[0] = BOXDRAW_DOWN_RIGHT; in CreatePopUp() 403 Line[MaxLength + 1] = BOXDRAW_DOWN_LEFT; in CreatePopUp() 404 Line[MaxLength + 2] = L'\0'; in CreatePopUp() 406 ConOut->OutputString (ConOut, Line); in CreatePopUp() 414 SetMem16 (Line, (MaxLength + 2) * 2, L' '); in CreatePopUp() 419 CopyMem (Line + 1 + (MaxLength - Length) / 2, String , Length * sizeof (CHAR16)); in CreatePopUp() [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/GenAprioriFile/ |
D | GenAprioriFile.c | 66 INT8 *Line 103 INT8 Line[MAX_LINE_LEN]; in main() local 150 while (fgets (Line, sizeof (Line), AprioriFptr) != NULL) { in main() 152 if (IsCommentLine (Line)) { in main() 158 if (StringToGuid (Line, &Guid) != EFI_SUCCESS) { in main() 207 … if ((fgets (Line, sizeof (Line), AprioriFptr) != NULL) || (fread (&GuidIn, 1, 1, BinFptr) != 0)) { in main() 243 while (fgets (Line, sizeof (Line), AprioriFptr) != NULL) { in main() 245 if (IsCommentLine (Line)) { in main() 251 if (StringToGuid (Line, &Guid) != EFI_SUCCESS) { in main() 289 INT8 *Line in IsCommentLine() argument [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Trim/ |
D | Trim.py | 156 Line = Lines[Index] 161 MatchList = gLineControlDirective.findall(Line) 185 Line = gLongNumberPattern.sub(r"\1", Line) 188 Line = gHexNumberPattern.sub(r"0\2h", Line) 190 Line = gHexNumberPattern.sub(r"\1\2", Line) 193 Line = gDecNumberPattern.sub(r"\1", Line) 200 NewLines[LineNumber - 1] = Line 205 NewLines.append(Line) 209 NewLines.append(Line) 217 Line = Lines[Index] [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/ProcessDsc/ |
D | DscFile.c | 82 char *Line, in DSCFileGetLine() argument 94 if (DSC->CurrentLine->Line[0] == '[') { in DSCFileGetLine() 101 if ((DSC->CurrentLine->Line[0] == '\\') && (DSC->CurrentLine->Line[1] == '[')) { in DSCFileGetLine() 102 Cptr = DSC->CurrentLine->Line + 1; in DSCFileGetLine() 104 Cptr = DSC->CurrentLine->Line; in DSCFileGetLine() 107 strncpy (Line, Cptr, LineLen); in DSCFileGetLine() 110 return Line; in DSCFileGetLine() 156 char Line[MAX_LINE_LEN]; in DSCParseInclude() local 223 if (fgets (Line, sizeof (Line), FilePtr) == NULL) { in DSCParseInclude() 232 if ((strncmp (Line, "!include", 8) == 0) && (isspace (Line[8]))) { in DSCParseInclude() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiLib/ |
D | Console.c | 415 CHAR16 *Line; in CreatePopUp() local 482 Line = AllocateZeroPool ((MaxLength + 3) * sizeof (CHAR16)); in CreatePopUp() 483 ASSERT (Line != NULL); in CreatePopUp() 488 SetMem16 (Line, (MaxLength + 2) * 2, BOXDRAW_HORIZONTAL); in CreatePopUp() 489 Line[0] = BOXDRAW_DOWN_RIGHT; in CreatePopUp() 490 Line[MaxLength + 1] = BOXDRAW_DOWN_LEFT; in CreatePopUp() 491 Line[MaxLength + 2] = L'\0'; in CreatePopUp() 493 ConOut->OutputString (ConOut, Line); in CreatePopUp() 500 SetMem16 (Line, (MaxLength + 2) * 2, L' '); in CreatePopUp() 501 Line[0] = BOXDRAW_VERTICAL; in CreatePopUp() [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/TargetTool/ |
D | TargetTool.py | 62 for Line in f: 63 if Line.startswith(CommentCharacter) or Line.strip() == '': 65 LineList = Line.split(KeySplitCharacter,1) 102 for Line in fr: 103 if Line.startswith(CommentCharacter) or Line.strip() == '': 104 fw.write(Line) 106 LineList = Line.split(KeySplitCharacter,1) 116 Line = "%-30s = \n" % Key 120 Line = ret 121 fw.write(Line) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
D | Parser.py | 51 for Line in open(Filename, 'r'): 52 Line = Line.strip() 54 if Line.find(TAB_COMMENT_EDK_START) > -1: 55 ReservedLine = GetSplitList(Line, TAB_COMMENT_EDK_START, 1)[0] 57 if Line.find(TAB_COMMENT_EDK_END) > -1: 58 Line = ReservedLine + GetSplitList(Line, TAB_COMMENT_EDK_END, 1)[1] 66 Line = CleanString(Line) 67 if Line == '': 73 if IsFindBlockCode and Line[-1] != TAB_SLASH: 74 ReservedLine = (ReservedLine + TAB_SPACE_SPLIT + Line).strip() [all …]
|