URL-encode an item in search results.
static void UrlEncodeItem(dtsSearchResultsItem& item, DString& dest, int maxLen);
|
Parameters |
Description |
|
dtsSearchResultsItem& item |
The search results item to encode |
|
DString& dest |
String buffer to receive encoded item |
|
int maxLen |
Maximum length of the string to generate |
An item is url-encoded by storing the index path, document id, and hit offsets. Some browsers and web servers are unable to handle very long URLs, so the string generated should be limited, using the maxLen parameter, to 1024 characters.
|
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.
|