(matchobj: Match[str])
| 49 | """ |
| 50 | |
| 51 | def repl(matchobj: Match[str]) -> str: |
| 52 | i = ord(matchobj.group()) |
| 53 | if i <= 0xFF: |
| 54 | return "#x%02X" % i |
| 55 | else: |
| 56 | return "#x%04X" % i |
| 57 | |
| 58 | # The spec range of valid chars is: |
| 59 | # Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] |
nothing calls this directly
no outgoing calls
no test coverage detected