Skip to content

Text manipulation Reference

Provides expressions to manipulate strings (also called texts): new line, upper/lowercase, substring, find, replace, etc...

Expressions

Expression Description
FromCodePoint(number) Get character from code point
🔢 Number Code point
NewLine() Insert a new line
StrAt(string, number) Get a character from a text
🔤 String Text
🔢 Number Position of the character (the first letter is at position 0)
StrFind(string, string) Search in a text (return the position of the result or -1 if not found)
🔤 String Text
🔤 String Text to search for
StrFindFrom(string, string, number) Search in a text, starting from a position (return the position of the result or -1 if not found)
🔤 String Text
🔤 String Text to search for
🔢 Number Position of the first character in the string to be considered in the search
StrFindLast(string, string) Search the last occurrence in a string (return the position of the result, from the beginning of the string, or -1 if not found)
🔤 String Text
🔤 String Text to search for
StrFindLastFrom(string, string, number) Search in a text the last occurrence, starting from a position (return the position of the result, from the beginning of the string, or -1 if not found)
🔤 String Text
🔤 String Text to search for
🔢 Number Position of the last character in the string to be considered in the search
StrLength(string) Length of a text
🔤 String Text
StrRepeat(string, number) Repeat a text
🔤 String Text to repeat
🔢 Number Repetition count
StrReplaceAll(string, string, string) Replace all occurrences of a text by another.
🔤 String Text in which the replacement(s) must be done
🔤 String Text to find inside the first text
🔤 String Replacement to put instead of the text to find
StrReplaceOne(string, string, string) Replace the first occurrence of a text by another.
🔤 String Text in which the replacement must be done
🔤 String Text to find inside the first text
🔤 String Replacement to put instead of the text to find
SubStr(string, number, number) Get a portion of a text
🔤 String Text
🔢 Number Start position of the portion (the first letter is at position 0)
🔢 Number Length of the portion
ToLowerCase(string) Lowercase a text
🔤 String Text
ToUpperCase(string) Uppercase a text
🔤 String Text

The Text manipulation extension is always installed in all GDevelop projects: there is no need to add it from the Project Manager.

This page is an auto-generated reference page about the Text manipulation feature of GDevelop, the open-source, AI-powered, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.