Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > unq_escape

API Function: unq_escape

Summary:
Escape data for UNQ encoding

Defined In LPC Object:
/usr/common/sys/stringd.c

Prototype:
string unq_escape(string str)

Can Be Called By:
Anybody

Description:

Returns the string with all tildes, curly-braces and backslashes prefaced with a backslash. This means that if decoded as an UNQ string, everything will appear as a literal character. This is useful for serializing strings as UNQ.

Return Value:

The new string.

Errors:
Normally none.

See Also: