(s: str, charpos: int)
| 42 | |
| 43 | |
| 44 | def _is_character_escaped(s: str, charpos: int) -> bool: |
| 45 | num_bslashes = 0 |
| 46 | while (charpos > num_bslashes |
| 47 | and s[charpos - 1 - num_bslashes] == '\\'): |
| 48 | num_bslashes += 1 |
| 49 | return num_bslashes % 2 == 1 |
| 50 | |
| 51 | |
| 52 | def parse_labels(labels_string: str, openmetrics: bool = False) -> Dict[str, str]: |
no outgoing calls
no test coverage detected