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

Function isVariableName

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

Source from the content-addressed store, hash-verified

2import re
3
4def isVariableName(text : str):
5 if ("[" in text and "]" in text):
6 text = text.split("[")[0] # Array indices are ok
7 return re.fullmatch("[a-z][a-z0-9]*(_[a-z0-9]+)+", text)
8def isFunctionCall(text : str):
9 if (not "(" in text or not ")" in text):
10 return False

Callers 2

isFunctionCallFunction · 0.85
getEntryTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected