MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / fixfunnychars

Function fixfunnychars

tools/python-3.11.9-amd64/Tools/scripts/texi2html.py:1981–1989  ·  view source on GitHub ↗
(addr)

Source from the content-addressed store, hash-verified

1979# encoding times, so you get mismatches if you compress your files:
1980# a.html.gz will map to a_b.html.gz
1981def fixfunnychars(addr):
1982 i = 0
1983 while i < len(addr):
1984 c = addr[i]
1985 if c not in goodchars:
1986 c = '-'
1987 addr = addr[:i] + c + addr[i+1:]
1988 i = i + len(c)
1989 return addr
1990
1991
1992# Increment a string used as an enumeration

Callers 1

makefileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected