Esempio n. 1
0
/*
  construct a MprVar from a string, using NULL if needed
*/
struct MprVar mprString(const char *s)
{
	if (s == NULL) {
		return mprCreatePtrVar(NULL);
	}
	return mprCreateStringVar(s, True);
}
Esempio n. 2
0
void espSetStringVar(EspRequest *ep, EspEnvType oType, char *var, char *value)
{
	/*
 	 *	Will create or update if already existing
 	 */
	mprSetPropertyValue(&ep->variables[oType], var, 
		mprCreateStringVar(value, 0));
}
Esempio n. 3
0
void espSetReturnString(EspRequest *ep, char *str)
{
	mprAssert(ep);

	ejsSetReturnValue(ep->eid, mprCreateStringVar(str, 0));
}