expandReferences

fun expandReferences(stringToExpand: String): <Error class: unknown class><String>

Returns a new string containing the text in @string_to_expand with references and escape sequences expanded. References refer to the last match done with @string against @regex and have the same syntax used by g_regex_replace().

The @string_to_expand must be UTF-8 encoded even if %G_REGEX_RAW was passed to g_regex_new().

The backreferences are extracted from the string passed to the match function, so you cannot call this function after freeing the string.

Return

the expanded string, or null if an error occurred

Since

2.14

Parameters

stringToExpand

the string to expand