OBJECT
/obj/lib/datastring
SYNOPSIS
inherit "/obj/lib/datastring";
int restore_value( string str, mixed r, int delimiter );
int save_value( mixed r, string str );
AUTHOR
Mica@OSB, 23Jun97
DESCRIPTION
Library for conversion between string <-> LPC datatype, based on
the string format save_object() uses.
varargs int restore_value( string str, mixed r, int delimiter );
This function converts a string to a LPC datatype.
Both str and r have to be passed by reference, delimiter must not
be specified, it is used for an internal recursion.
The function returns 1 on success and 0 on failure.
The result on success is stored in r, otherweise r is invalid.
The value of str is destroyed!
Possible datatypes are arrays, mappings, integers and strings,
anything else, for example floats will result in a failure.
int save_value( mixed r, string str );
This function converts a LPC datatype to a string.
The string str has to be passed by reference and must be initialized
to "".
The fucntion returns 1 on success and 0 on failure.
The result on success is stored in str, otherwise str is invalid.
Possible datatypes for conversion are arrays, mappings, integers and
strings. Anything else results in a failure.