GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
|
Mangle the name of a scene, so that it can be used in code or file names. More...
#include <SceneNameMangler.h>
Public Member Functions | |
const gd::String & | GetMangledSceneName (const gd::String &sceneName) |
Mangle the name of a scene, replacing all characters that are not 0-9, a-z or A-Z by "_"+UnicodeCodePointOfTheCharacter. The first character must be a letter, otherwise it is also replaced in the same manner. More... | |
Static Public Member Functions | |
static SceneNameMangler * | Get () |
static void | DestroySingleton () |
Mangle the name of a scene, so that it can be used in code or file names.
const gd::String & gd::SceneNameMangler::GetMangledSceneName | ( | const gd::String & | sceneName | ) |
Mangle the name of a scene, replacing all characters that are not 0-9, a-z or A-Z by "_"+UnicodeCodePointOfTheCharacter. The first character must be a letter, otherwise it is also replaced in the same manner.
The mangled name is memoized as this is intensively used during project export and events code generation.