unexpand


Description:

[ Version ( since = "2.10" ) ]
public static string unexpand (string path, bool recode) throws Error

The inverse operation of expand

This function takes a path and tries to substitute the first elements by well-known special identifiers such as for example ${gimp_dir}. The unexpanded path can then be stored in gimprc and other config files.

If recode is true then path is in local filesystem encoding, if recode is false then path is assumed to be UTF-8.

Parameters:

path

a NUL-terminated string

recode

whether path is in filesystem encoding or UTF-8

Returns:

a newly allocated NUL-terminated UTF-8 string