1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

add is_routingvar wrapper

This commit is contained in:
Philipp Hancke 2011-07-17 10:48:01 +02:00 committed by tg(x)
parent 0d870770f2
commit 1c6225e057

View file

@ -91,6 +91,17 @@ PIKEFUN string psyc_text(string template, mapping vars) {
} while (ret == PSYC_TEXT_INCOMPLETE);
}
/*! @decl string is_routingvar(string name)
*! @param name
*! name of the variable
*! @returns
*! 1 if it is a routing variable
*! 0 otherwise
*/
PIKEFUN int is_routingvar(string name) {
RETURN psyc_isRoutingVar2((char *) STR0(name), name->len);
}
/*! @decl string render(mapping rvars, mapping evars, string method, string|void body)
*! @param rvars
*! routing vars (mapping string:string)