CodeTools - Maple Programming Help

Home : Support : Online Help : Programming : CodeTools : CodeTools/EncodeName

CodeTools

 EncodeName
 encode a procedure name for use with the CodeTools package

 Calling Sequence EncodeName(name)

Parameters

 name - procedure name

Description

 • The EncodeName(name) command accepts a name and encodes it into a form that can be used with the CodeTools package.
 • A name encoded with EncodeName can be recovered using DecodeName function.
 • 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

 > $\mathrm{CodeTools}[\mathrm{EncodeName}]\left('\mathrm{int}'\right)$
 ${\mathrm{_Inert_ASSIGNEDLOCALNAME}}{}\left({"ModuleApply"}{,}{"PROC"}{,}{0}{,}{\mathrm{_Inert_ATTRIBUTE}}{}\left({\mathrm{_Inert_EXPSEQ}}{}\left({\mathrm{_Inert_EQUATION}}{}\left({\mathrm{_Inert_NAME}}{}\left({"modulename"}\right){,}{\mathrm{_Inert_ASSIGNEDNAME}}{}\left({"int"}{,}{"MODULE"}{,}{\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)\right)\right)\right)\right)$ (1)
 > $a≔\mathrm{CodeTools}[\mathrm{EncodeName}]\left('\mathrm{CodeTools}[\mathrm{EncodeName}]'\right)$
 ${a}{≔}{\mathrm{_Inert_TABLEREF}}{}\left({\mathrm{_Inert_ASSIGNEDNAME}}{}\left({"CodeTools"}{,}{"MODULE"}{,}{\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){,}{\mathrm{_Inert_EXPSEQ}}{}\left({\mathrm{_Inert_NAME}}{}\left({"EncodeName"}\right)\right)\right)$ (2)
 > $\mathrm{CodeTools}[\mathrm{DecodeName}]\left(a\right)$
 ${\mathrm{CodeTools:-EncodeName}}$ (3)