GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
Public Member Functions | Static Public Member Functions | List of all members

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::StringGetMangledSceneName (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 SceneNameManglerGet ()
 
static void DestroySingleton ()
 

Detailed Description

Mangle the name of a scene, so that it can be used in code or file names.

Member Function Documentation

◆ GetMangledSceneName()

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.


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