MCPcopy Create free account
hub / github.com/ZDoom/Raze / AddName

Method AddName

source/common/scripting/frontend/ast.cpp:167–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 Add(str.GetChars(), str.Len());
166 }
167 void AddName(FName name)
168 {
169 size_t namelen = strlen(name.GetChars());
170 CheckWrap(namelen + 2 + NeedSpace);
171 if (NeedSpace)
172 {
173 NeedSpace = false;
174 Str << ' ';
175 }
176 Str << '\'' << name.GetChars() << '\'';
177 Column += namelen + 2 + NeedSpace;
178 NeedSpace = true;
179 }
180 void AddChar(char c)
181 {
182 Add(&c, 1);

Callers 15

PrintIdentifierFunction · 0.45
PrintClassFunction · 0.45
PrintStructFunction · 0.45
PrintPropertyFunction · 0.45
PrintFlagDefFunction · 0.45
PrintStaticArrayStateFunction · 0.45
PrintEnumFunction · 0.45
PrintStateLabelFunction · 0.45
PrintVarNameFunction · 0.45
PrintVarInitFunction · 0.45
PrintExprIDFunction · 0.45
PrintExprConstantFunction · 0.45

Calls 1

GetCharsMethod · 0.45

Tested by

no test coverage detected