Need some help.
I created a new config attribute called "urlshow_length". I would like
to use this variable inside Display.cc to reduce the size of $(URL)
to "urlshow_length" bytes, and copy this out to $(URLSHOW).
The line that begins with "-->" is where I need to understand
how I can easily truncate the "urlshow" down to, lets say, 60
characters max (or whatever value is in "urlshow_length").
int showurl_length = config.Value("urlshow_length");
char *urlshow = match->getURL();
--> urlshow needs to be reduced down to "urlshow_length" bytes here <--
vars.Add("URLSHOW", new String(urlshow));
Sometimes, if the URL is too long, using $(URL) in a non-hyperlink
manner, just looks horrible. :-)
Thanks,
Patrick
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.