GLib.strdelimit

function strdelimit(string: String, delimiters: String, new_delimiter: Number(gchar)): String {
    // Gjs wrapper for g_strdelimit()
}
  

Converts any delimiter characters in string to new_delimiter. Any characters in string which are found in delimiters are changed to the new_delimiter character. Modifies string in place, and returns string itself, not a copy. The return value is to allow nesting such as |[<!-- language="C" --> g_ascii_strup (g_strdelimit (str, "abc", '?')) ]|

string

the string to convert

delimiters

a string containing the current delimiters, or null to use the standard delimiters defined in #G_STR_DELIMITERS

new_delimiter

the new delimiter character

Returns

string