You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

string_add_spaces

string_add_spaces(str)
Returns the given string with spaces inserted between each character.
COPY/// string_add_spaces(str)
//
//  Returns the given string with spaces inserted between each character.
//
//      str         string to add spaces to, string
//
/// gmlscripts.pro/license
{
    var str, len;
    str = argument0;
    len = string_length(str);
    for (j=len; j>0; j-=1) str = string_insert(' ', str, j);
    return str;
}

Contributors: Legolas710, xot

GitHub: View · Commits · Blame · Raw