String

There is currently no description for this class. Please help us by contributing one!

Note

There are notable differences when using this API with C#. See C# Differences for more information.

Constructors

String

String ( )

String

String ( String from )

String

String ( NodePath from )

String

String ( StringName from )

Methods

bool

begins_with ( String text ) const

PackedStringArray

bigrams ( ) const

int

bin_to_int ( ) const

String

c_escape ( ) const

String

c_unescape ( ) const

String

capitalize ( ) const

int

casecmp_to ( String to ) const

String

chr ( int char ) static

bool

contains ( String what ) const

bool

containsn ( String what ) const

int

count ( String what, int from=0, int to=0 ) const

int

countn ( String what, int from=0, int to=0 ) const

String

dedent ( ) const

bool

ends_with ( String text ) const

String

erase ( int position, int chars=1 ) const

int

filecasecmp_to ( String to ) const

int

filenocasecmp_to ( String to ) const

int

find ( String what, int from=0 ) const

int

findn ( String what, int from=0 ) const

String

format ( Variant values, String placeholder=”{_}” ) const

String

get_base_dir ( ) const

String

get_basename ( ) const

String

get_extension ( ) const

String

get_file ( ) const

String

get_slice ( String delimiter, int slice ) const

int

get_slice_count ( String delimiter ) const

String

get_slicec ( int delimiter, int slice ) const

int

hash ( ) const

PackedByteArray

hex_decode ( ) const

int

hex_to_int ( ) const

String

humanize_size ( int size ) static

String

indent ( String prefix ) const

String

insert ( int position, String what ) const

bool

is_absolute_path ( ) const

bool

is_empty ( ) const

bool

is_relative_path ( ) const

bool

is_subsequence_of ( String text ) const

bool

is_subsequence_ofn ( String text ) const

bool

is_valid_filename ( ) const

bool

is_valid_float ( ) const

bool

is_valid_hex_number ( bool with_prefix=false ) const

bool

is_valid_html_color ( ) const

bool

is_valid_identifier ( ) const

bool

is_valid_int ( ) const

bool

is_valid_ip_address ( ) const

String

join ( PackedStringArray parts ) const

String

json_escape ( ) const

String

left ( int length ) const

int

length ( ) const

String

lpad ( int min_length, String character=” “ ) const

String

lstrip ( String chars ) const

bool

match ( String expr ) const

bool

matchn ( String expr ) const

PackedByteArray

md5_buffer ( ) const

String

md5_text ( ) const

int

naturalcasecmp_to ( String to ) const

int

naturalnocasecmp_to ( String to ) const

int

nocasecmp_to ( String to ) const

String

num ( float number, int decimals=-1 ) static

String

num_int64 ( int number, int base=10, bool capitalize_hex=false ) static

String

num_scientific ( float number ) static

String

num_uint64 ( int number, int base=10, bool capitalize_hex=false ) static

String

pad_decimals ( int digits ) const

String

pad_zeros ( int digits ) const

String

path_join ( String file ) const

String

repeat ( int count ) const

String

replace ( String what, String forwhat ) const

String

replacen ( String what, String forwhat ) const

String

reverse ( ) const

int

rfind ( String what, int from=-1 ) const

int

rfindn ( String what, int from=-1 ) const

String

right ( int length ) const

String

rpad ( int min_length, String character=” “ ) const

PackedStringArray

rsplit ( String delimiter=””, bool allow_empty=true, int maxsplit=0 ) const

String

rstrip ( String chars ) const

PackedByteArray

sha1_buffer ( ) const

String

sha1_text ( ) const

PackedByteArray

sha256_buffer ( ) const

String

sha256_text ( ) const

float

similarity ( String text ) const

String

simplify_path ( ) const

PackedStringArray

split ( String delimiter=””, bool allow_empty=true, int maxsplit=0 ) const

PackedFloat64Array

split_floats ( String delimiter, bool allow_empty=true ) const

String

strip_edges ( bool left=true, bool right=true ) const

String

strip_escapes ( ) const

String

substr ( int from, int len=-1 ) const

PackedByteArray

to_ascii_buffer ( ) const

String

to_camel_case ( ) const

float

to_float ( ) const

int

to_int ( ) const

String

to_lower ( ) const

String

to_pascal_case ( ) const

String

to_snake_case ( ) const

String

to_upper ( ) const

PackedByteArray

to_utf8_buffer ( ) const

PackedByteArray

to_utf16_buffer ( ) const

PackedByteArray

to_utf32_buffer ( ) const

PackedByteArray

to_wchar_buffer ( ) const

String

trim_prefix ( String prefix ) const

String

trim_suffix ( String suffix ) const

int

unicode_at ( int at ) const

String

uri_decode ( ) const

String

uri_encode ( ) const

String

validate_filename ( ) const

String

validate_node_name ( ) const

String

xml_escape ( bool escape_quotes=false ) const

String

xml_unescape ( ) const

Operators

bool

operator != ( String right )

bool

operator != ( StringName right )

String

operator % ( Variant right )

String

operator + ( String right )

String

operator + ( StringName right )

bool

operator < ( String right )

bool

operator <= ( String right )

bool

operator == ( String right )

bool

operator == ( StringName right )

bool

operator > ( String right )

bool

operator >= ( String right )

String

operator [] ( int index )


Constructor Descriptions

String String ( )

There is currently no description for this constructor. Please help us by contributing one!


String String ( String from )

There is currently no description for this constructor. Please help us by contributing one!


String String ( NodePath from )

There is currently no description for this constructor. Please help us by contributing one!


String String ( StringName from )

There is currently no description for this constructor. Please help us by contributing one!


Method Descriptions

bool begins_with ( String text ) const

There is currently no description for this method. Please help us by contributing one!


PackedStringArray bigrams ( ) const

There is currently no description for this method. Please help us by contributing one!


int bin_to_int ( ) const

There is currently no description for this method. Please help us by contributing one!


String c_escape ( ) const

There is currently no description for this method. Please help us by contributing one!


String c_unescape ( ) const

There is currently no description for this method. Please help us by contributing one!


String capitalize ( ) const

There is currently no description for this method. Please help us by contributing one!


int casecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


String chr ( int char ) static

There is currently no description for this method. Please help us by contributing one!


bool contains ( String what ) const

There is currently no description for this method. Please help us by contributing one!


bool containsn ( String what ) const

There is currently no description for this method. Please help us by contributing one!


int count ( String what, int from=0, int to=0 ) const

There is currently no description for this method. Please help us by contributing one!


int countn ( String what, int from=0, int to=0 ) const

There is currently no description for this method. Please help us by contributing one!


String dedent ( ) const

There is currently no description for this method. Please help us by contributing one!


bool ends_with ( String text ) const

There is currently no description for this method. Please help us by contributing one!


String erase ( int position, int chars=1 ) const

There is currently no description for this method. Please help us by contributing one!


int filecasecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


int filenocasecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


int find ( String what, int from=0 ) const

There is currently no description for this method. Please help us by contributing one!


int findn ( String what, int from=0 ) const

There is currently no description for this method. Please help us by contributing one!


String format ( Variant values, String placeholder=”{_}” ) const

There is currently no description for this method. Please help us by contributing one!


String get_base_dir ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_basename ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_extension ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_file ( ) const

There is currently no description for this method. Please help us by contributing one!


String get_slice ( String delimiter, int slice ) const

There is currently no description for this method. Please help us by contributing one!


int get_slice_count ( String delimiter ) const

There is currently no description for this method. Please help us by contributing one!


String get_slicec ( int delimiter, int slice ) const

There is currently no description for this method. Please help us by contributing one!


int hash ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray hex_decode ( ) const

There is currently no description for this method. Please help us by contributing one!


int hex_to_int ( ) const

There is currently no description for this method. Please help us by contributing one!


String humanize_size ( int size ) static

There is currently no description for this method. Please help us by contributing one!


String indent ( String prefix ) const

There is currently no description for this method. Please help us by contributing one!


String insert ( int position, String what ) const

There is currently no description for this method. Please help us by contributing one!


bool is_absolute_path ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_empty ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_relative_path ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_subsequence_of ( String text ) const

There is currently no description for this method. Please help us by contributing one!


bool is_subsequence_ofn ( String text ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_filename ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_float ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_hex_number ( bool with_prefix=false ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_html_color ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_identifier ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_int ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_valid_ip_address ( ) const

There is currently no description for this method. Please help us by contributing one!


String join ( PackedStringArray parts ) const

There is currently no description for this method. Please help us by contributing one!


String json_escape ( ) const

There is currently no description for this method. Please help us by contributing one!


String left ( int length ) const

There is currently no description for this method. Please help us by contributing one!


int length ( ) const

There is currently no description for this method. Please help us by contributing one!


String lpad ( int min_length, String character=” “ ) const

There is currently no description for this method. Please help us by contributing one!


String lstrip ( String chars ) const

There is currently no description for this method. Please help us by contributing one!


bool match ( String expr ) const

There is currently no description for this method. Please help us by contributing one!


bool matchn ( String expr ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray md5_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


String md5_text ( ) const

There is currently no description for this method. Please help us by contributing one!


int naturalcasecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


int naturalnocasecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


int nocasecmp_to ( String to ) const

There is currently no description for this method. Please help us by contributing one!


String num ( float number, int decimals=-1 ) static

There is currently no description for this method. Please help us by contributing one!


String num_int64 ( int number, int base=10, bool capitalize_hex=false ) static

There is currently no description for this method. Please help us by contributing one!


String num_scientific ( float number ) static

There is currently no description for this method. Please help us by contributing one!


String num_uint64 ( int number, int base=10, bool capitalize_hex=false ) static

There is currently no description for this method. Please help us by contributing one!


String pad_decimals ( int digits ) const

There is currently no description for this method. Please help us by contributing one!


String pad_zeros ( int digits ) const

There is currently no description for this method. Please help us by contributing one!


String path_join ( String file ) const

There is currently no description for this method. Please help us by contributing one!


String repeat ( int count ) const

There is currently no description for this method. Please help us by contributing one!


String replace ( String what, String forwhat ) const

There is currently no description for this method. Please help us by contributing one!


String replacen ( String what, String forwhat ) const

There is currently no description for this method. Please help us by contributing one!


String reverse ( ) const

There is currently no description for this method. Please help us by contributing one!


int rfind ( String what, int from=-1 ) const

There is currently no description for this method. Please help us by contributing one!


int rfindn ( String what, int from=-1 ) const

There is currently no description for this method. Please help us by contributing one!


String right ( int length ) const

There is currently no description for this method. Please help us by contributing one!


String rpad ( int min_length, String character=” “ ) const

There is currently no description for this method. Please help us by contributing one!


PackedStringArray rsplit ( String delimiter=””, bool allow_empty=true, int maxsplit=0 ) const

There is currently no description for this method. Please help us by contributing one!


String rstrip ( String chars ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray sha1_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


String sha1_text ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray sha256_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


String sha256_text ( ) const

There is currently no description for this method. Please help us by contributing one!


float similarity ( String text ) const

There is currently no description for this method. Please help us by contributing one!


String simplify_path ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedStringArray split ( String delimiter=””, bool allow_empty=true, int maxsplit=0 ) const

There is currently no description for this method. Please help us by contributing one!


PackedFloat64Array split_floats ( String delimiter, bool allow_empty=true ) const

There is currently no description for this method. Please help us by contributing one!


String strip_edges ( bool left=true, bool right=true ) const

There is currently no description for this method. Please help us by contributing one!


String strip_escapes ( ) const

There is currently no description for this method. Please help us by contributing one!


String substr ( int from, int len=-1 ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray to_ascii_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


String to_camel_case ( ) const

There is currently no description for this method. Please help us by contributing one!


float to_float ( ) const

There is currently no description for this method. Please help us by contributing one!


int to_int ( ) const

There is currently no description for this method. Please help us by contributing one!


String to_lower ( ) const

There is currently no description for this method. Please help us by contributing one!


String to_pascal_case ( ) const

There is currently no description for this method. Please help us by contributing one!


String to_snake_case ( ) const

There is currently no description for this method. Please help us by contributing one!


String to_upper ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray to_utf8_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray to_utf16_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray to_utf32_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


PackedByteArray to_wchar_buffer ( ) const

There is currently no description for this method. Please help us by contributing one!


String trim_prefix ( String prefix ) const

There is currently no description for this method. Please help us by contributing one!


String trim_suffix ( String suffix ) const

There is currently no description for this method. Please help us by contributing one!


int unicode_at ( int at ) const

There is currently no description for this method. Please help us by contributing one!


String uri_decode ( ) const

There is currently no description for this method. Please help us by contributing one!


String uri_encode ( ) const

There is currently no description for this method. Please help us by contributing one!


String validate_filename ( ) const

There is currently no description for this method. Please help us by contributing one!


String validate_node_name ( ) const

There is currently no description for this method. Please help us by contributing one!


String xml_escape ( bool escape_quotes=false ) const

There is currently no description for this method. Please help us by contributing one!


String xml_unescape ( ) const

There is currently no description for this method. Please help us by contributing one!


Operator Descriptions

bool operator != ( String right )

There is currently no description for this operator. Please help us by contributing one!


bool operator != ( StringName right )

There is currently no description for this operator. Please help us by contributing one!


String operator % ( Variant right )

There is currently no description for this operator. Please help us by contributing one!


String operator + ( String right )

There is currently no description for this operator. Please help us by contributing one!


String operator + ( StringName right )

There is currently no description for this operator. Please help us by contributing one!


bool operator < ( String right )

There is currently no description for this operator. Please help us by contributing one!


bool operator <= ( String right )

There is currently no description for this operator. Please help us by contributing one!


bool operator == ( String right )

There is currently no description for this operator. Please help us by contributing one!


bool operator == ( StringName right )

There is currently no description for this operator. Please help us by contributing one!


bool operator > ( String right )

There is currently no description for this operator. Please help us by contributing one!


bool operator >= ( String right )

There is currently no description for this operator. Please help us by contributing one!


String operator [] ( int index )

There is currently no description for this operator. Please help us by contributing one!