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

Function cleanConditionPart

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

Source from the content-addressed store, hash-verified

61 raise SyntaxError("There still is a char to replace in the comment. This must be cleaned up first.")
62 return text
63def cleanConditionPart(text : str):
64 text = text.strip()
65 text = text.replace("\xa0−\xa0", " - ")
66 text = text.replace('−', '-')
67 if (text.find("\xa0") != -1):
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-", "--")

Callers 1

fromTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected