MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / suppressSpaces

Function suppressSpaces

Engine/source/console/fieldBrushObject.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//-----------------------------------------------------------------------------
110static char replacebuf[1024];
111static char* suppressSpaces(const char* in_pname)
112{
113 U32 i = 0;
114 char chr;
115 do
116 {
117 chr = in_pname[i];
118 replacebuf[i++] = (chr != 32) ? chr : '_';
119 } while(chr);
120
121 return replacebuf;
122}
123
124//-----------------------------------------------------------------------------
125// Query Groups.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected