encode: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function encode== {{ProposedChange}} Encodes a string that was can be decoded with the decode() function. The decode() and encode...)
 
No edit summary
Line 7: Line 7:
===Usage===
===Usage===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: str = encode(string)]
[h: str = encode(str)]
</source>
</source>



Revision as of 12:35, 1 December 2008

Function encode

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

Encodes a string that was can be decoded with the decode() function. The decode() and encode() functions can be used to encode a property list so that it can be embedded within another property list.


Usage

[h: str = encode(str)]

Examples

[h: innerPropList = encode("val1=blah ; val2=blahblah")]
[h: props = setStrProp(props, key, innerPropList)]