Hi,

i want to modify Display.cc in order to have a template variable called SHORTURL, 
because the URL var break my
html page.

The problem is, i cant code C++ and have some slight problems. In Java i would do this 
(at line 243):

vars.Add("URLSHORT", new String(url.get()).substr(0,50));

In C++ the compiler will cry out loud ;-) I assume that String is not a class like i 
know it from
Java, because it seems that String dont know substr(). I assume that String is a 
custom class with only
very limited functionality is it?

No panic, i dont want to get some C++ class right here (am quite satisfied with doing 
java), but i love
htdig and would love to have someone on the list getting me help on this one. Please 
no vague answers, i need
the whole code for doing substring operation and addition to the map (or whatever 
"vars" is).

Thanks a lot.

BTW: would be a nice feature to customize this in htdig.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
ht://Dig Developer mailing list:
[EMAIL PROTECTED]
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to