Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddnet/ddnet
/ FormatName
Function
FormatName
datasrc/datatypes.py:35–40 ·
view source on GitHub ↗
(typ, name)
Source
from the content-addressed store, hash-verified
33
34
35
def
FormatName(typ, name):
36
if
"*"
in typ:
37
return
"m_p"
+ FixCasing(name)
38
if
"[]"
in typ:
39
return
"m_a"
+ FixCasing(name)
40
return
"m_"
+ FixCasing(name)
41
42
43
class
BaseType:
Callers
3
EmitDeclaration
Method · 0.70
EmitDeclaration
Method · 0.70
FormatName
Method · 0.50
Calls
1
FixCasing
Function · 0.70
Tested by
no test coverage detected