Get a string by its index. Args: index: The index of the string Returns: str: The string at the given index, or empty string if invalid
(self, index)
| 28 | return index |
| 29 | |
| 30 | def get_string(self, index): |
| 31 | """Get a string by its index. |
| 32 | |
| 33 | Args: |
| 34 | index: The index of the string |
| 35 | |
| 36 | Returns: |
| 37 | str: The string at the given index, or empty string if invalid |
| 38 | """ |
| 39 | if 0 <= index < len(self._strings): |
| 40 | return self._strings[index] |
| 41 | return "" |
| 42 | |
| 43 | def get_strings(self): |
| 44 | """Get the list of all strings in the table. |
no outgoing calls