Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mingodad is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ParseSvg.cpp:506:35: error: conversion from 'Upp::String' to non-scalar type
Next Topic: Witz template cryptic error messages
Goto Forum:
  


Current Time: Sun May 05 18:13:47 CEST 2024

Total time taken to generate the page: 0.02088 seconds