Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Skylark functions/links
Re: Skylark functions/links [message #42925 is a reply to message #42924] |
Mon, 14 April 2014 18:49 |
mingodad
Messages: 53 Registered: February 2008 Location: Spain
|
Member |
|
|
Thanks for the link !
I've created this function:
Value WitzUrlEncode(const Vector<Value>& arg, const Renderer *) {
if(arg.GetCount() != 1 || !IsString(arg[0]))
return String();
StringBuffer buf;
UrlEncode(buf, String(arg[0]));
return Value(buf.Begin());
}
INITBLOCK {
Compiler::Register("url_encode", WitzUrlEncode);
}
But I get two kind of errors ($rec.name has valid content) :
------
$url_encode($rec.name) >>> Internal server error (206,12): missing number
------
or
------
$url_encode(rec.name) >>> *************PANIC: Invalid memory access! Segmentation fault (core dumped)
------
Probably a bug in U++ !!!
Attached sample to test!
[Updated on: Mon, 14 April 2014 19:12] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun May 05 18:13:47 CEST 2024
Total time taken to generate the page: 0.02088 seconds
|