DecodeName - Maple Help

CodeTools

 DecodeName
 decode an encoded procedure name for use with the CodeTools package

 Calling Sequence DecodeName(e, opts)

Parameters

 e - name encoded using the CodeTools[EncodeName] command opts - equation(s) of the form output=value where value is one of string or name; specify the type of output

Description

 • The DecodeName(e) command decodes e into a procedure name.
 • If you specify the optional argument output = string, the decoded name returns as a string.  The string represents the fully qualified version of the specified name.
 • Encoded names can be created using CodeTools[EncodeName] function. They also occur occasionally in data returned from CodeTools functions.
 • Encoding and decoding names is generally only required if you want to interact with the data used in the CodeTools subpackages directly.  If the provided functions are sufficient for your purposes, you may not need to use the DecodeName and EncodeName functions.

Examples

 > $a≔\mathrm{CodeTools}\left[\mathrm{EncodeName}\right]\left('\mathrm{solve}'\right)$
 ${a}{≔}{\mathrm{_Inert_ASSIGNEDNAME}}{}\left({"solve"}{,}{"PROC"}{,}{\mathrm{_Inert_ATTRIBUTE}}{}\left({\mathrm{_Inert_EXPSEQ}}{}\left({\mathrm{_Inert_NAME}}{}\left({"protected"}{,}{\mathrm{_Inert_ATTRIBUTE}}{}\left({\mathrm{_Inert_NAME}}{}\left({"protected"}\right)\right)\right){,}{\mathrm{_Inert_NAME}}{}\left({"_syslib"}\right)\right)\right)\right)$ (1)
 > $\mathrm{CodeTools}\left[\mathrm{DecodeName}\right]\left(a\right)$
 ${\mathrm{solve}}$ (2)
 > $a≔\mathrm{CodeTools}\left[\mathrm{EncodeName}\right]\left('\mathrm{CodeTools}\left[\mathrm{DecodeName}\right]'\right):$
 > $\mathrm{CodeTools}\left[\mathrm{DecodeName}\right]\left(a\right)$
 ${\mathrm{CodeTools}}{:-}{\mathrm{DecodeName}}$ (3)
 > $\mathrm{CodeTools}\left[\mathrm{DecodeName}\right]\left(a,'\mathrm{output}'='\mathrm{string}'\right)$
 ${"CodeTools:-DecodeName"}$ (4)