(document, variableDescriptions)
| 387 | return f"{spaces}for({self.variableName} = {self.initialValue}; {self.breakCondition}; {self.increment})" |
| 388 | |
| 389 | def parseDocumentTables(document, variableDescriptions): |
| 390 | parsedTables = [] |
| 391 | |
| 392 | firstLastEntry = ["nal_unit_header", "slice_data"] |
| 393 | skipEntries = ["sei_rbsp"] |
| 394 | |
| 395 | firstEntryFound = False |
| 396 | for table in document.tables: |
| 397 | entryName = table.cell(0, 0).text.split("(")[0] |
| 398 | if (not firstEntryFound and entryName == firstLastEntry[0]): |
| 399 | firstEntryFound = True |
| 400 | if (firstEntryFound and entryName == firstLastEntry[1]): |
| 401 | break |
| 402 | if (entryName in skipEntries): |
| 403 | continue |
| 404 | if firstEntryFound: |
| 405 | tableItem = ContainerTable() |
| 406 | tableItem.parseContainer(table, variableDescriptions) |
| 407 | parsedTables.append(tableItem) |
| 408 | return parsedTables |
no test coverage detected