Dpkg::Substvars - handle variable substitution in strings
It provides some an object which is able to substitute variables in strings.
Create a new object that can do substitutions. By default it contains generic substitutions like ${Newline}, ${Space}, ${Tab}, ${dpkg:Version}, ${dpkg:Upstream-Version} and ${Arch}.
Additional substitutions will be read from the $file passed as parameter.
Add/replace a substitution.
Get the value of a given substitution.
Remove a given substitution.
Add new substitutions read from $file.
Defines ${binary:Version}, ${source:Version} and ${source:Upstream-Version} based on the given version string.
Substitutes variables in $string and return the result in $newstring.
Raphael Hertzog <hertzog@debian.org>.