GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
EventsCodeNameMangler Class Reference

Mangle object names, so as to ensure all names used in code are valid. More...

#include <EventsCodeNameMangler.h>

Public Member Functions

const gd::StringGetMangledObjectsListName (const gd::String &originalObjectName)
 
const gd::StringGetExternalEventsFunctionMangledName (const gd::String &externalEventsName)
 

Static Public Member Functions

static EventsCodeNameManglerGet ()
 
static void DestroySingleton ()
 

Detailed Description

Mangle object names, so as to ensure all names used in code are valid.

See also
ManObjListName

Member Function Documentation

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.


The documentation for this class was generated from the following files: