MCPcopy Create free account
hub / github.com/IENT/YUView / cleanIncrement

Function cleanIncrement

tools/standardTextToCode/parseTables.py:70–77  ·  view source on GitHub ↗
(text : str)

Source from the content-addressed store, hash-verified

68 raise SyntaxError("There still is a char to replace in the condition. This must be cleaned up first.")
69 return text
70def cleanIncrement(text : str):
71 text = text.strip()
72 text = text.replace("-\xa0-", "--")
73 text = text.replace("−\xa0−", "--")
74 text = text.replace('−', '-')
75 if (text.find("\xa0") != -1):
76 raise SyntaxError("There still is a char to replace in the increment. This must be cleaned up first.")
77 return text
78
79def getEntryType(text : str):
80 text = removeComments(text)

Callers 1

fromTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected