Changes between Version 2 and Version 3 of Doc/panc/dml/functions
- Timestamp:
- Mar 3, 2007, 10:12:41 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/panc/dml/functions
v2 v3 1 = = Built-In Functions ==1 = Functions = 2 2 [[TracNav]] 3 3 4 ==== base64 decode( arg:string ) : string ==== 4 == Built-In Functions == 5 6 === base64 decode( arg:string ) : string === 5 7 6 8 This function decodes the given string that must be Base64 (defined in RFC 2045) encoded. 7 9 10 {{{ 8 11 "/test" = "[" + base64_decode("aGVsbG8gd29ybGQ=") + "]"; 9 12 # will be the string "[hello world]" 13 }}} 10 14 11 clone( arg:element ) : element 15 === clone( arg:element ) : element === 12 16 13 17 This function returns a clone (copy) of the given argument. 14 18 15 create( name:string, . . . ) : nlist 19 === create( name:string, . . . ) : nlist === 16 20 17 21 This function returns the named list which is the result of the execution of the structure template identified … … 19 23 the result accordingly (a bit like with nlist). 20 24 25 {{{ 21 26 # description of a CD mount entry (but the device is unknown) 22 27 structure template mount_cdrom; … … 26 31 "options" = list("noauto", "owner", "ro"); 27 32 # our first mount entry is the CD coming from hdc 33 }}} 28 34 29 30 '''debug( string message )''' 35 === debug( string message ) === 31 36 32 37 This function prints the given message on stdout when debugging is enabled with the DEBUG USER