![]() |
GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Mangle object names, so as to ensure all names used in code are valid. More...
#include <EventsCodeNameMangler.h>
Public Member Functions | |
const gd::String & | GetMangledObjectsListName (const gd::String &originalObjectName) |
const gd::String & | GetExternalEventsFunctionMangledName (const gd::String &externalEventsName) |
Static Public Member Functions | |
static gd::String | GetMangledName (const gd::String &name) |
static EventsCodeNameMangler * | Get () |
static void | DestroySingleton () |
Mangle object names, so as to ensure all names used in code are valid.
const gd::String & EventsCodeNameMangler::GetExternalEventsFunctionMangledName | ( | const gd::String & | externalEventsName | ) |
Get the mangled function name to be used to call external events named externalEventsName.
The mangled name is memoized as this is intensively used during project export and events code generation.
const gd::String & EventsCodeNameMangler::GetMangledObjectsListName | ( | const gd::String & | originalObjectName | ) |
Get the mangled name from a name: All characters that are not 0-9, a-z, A-Z or _ are replaced by "_"+AsciiCodeOfTheCharacter.
The mangled name is memoized as this is intensively used during project export and events code generation.