(raw)
| 19981 | return str(v) |
| 19982 | |
| 19983 | def _parse_video_coord(raw): |
| 19984 | if raw is None: |
| 19985 | return None |
| 19986 | if isinstance(raw, (int, float)): |
| 19987 | try: |
| 19988 | v = float(raw) |
| 19989 | if v == v: |
| 19990 | return v |
| 19991 | except Exception: |
| 19992 | return None |
| 19993 | txt = str(raw).strip() |
| 19994 | if not txt: |
| 19995 | return None |
| 19996 | found = re.search(r"(-?\d+(?:[.,]\d+)?)", txt) |
| 19997 | if not found: |
| 19998 | return None |
| 19999 | try: |
| 20000 | return float(found.group(1).replace(",", ".")) |
| 20001 | except Exception: |
| 20002 | return None |
| 20003 | |
| 20004 | def _parse_iso6709(raw): |
| 20005 | txt = str(raw or "").strip() |
no outgoing calls
no test coverage detected