Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
dtsSearchResults::urlEncode Method (long, char *, ptrdiff_t)
urlEncode Method | dtsSearchResults Class | Send Feedback

urlEncode generates a string encoding the contents of the currently selected item in search results.

int urlEncode(long iItem, char * dest, ptrdiff_t maxLen);
Parameters
Parameters 
Description 
long iItem 
Zero-based index identifying the item to encode 
char * dest 
Buffer to receive the url-encoded item 
ptrdiff_t maxLen 
Size of the buffer (at least 1024 bytes is recommended) 
Description

The string can be used in a subsequent call to urlDecode to re-create the search results item.

Remarks

If the buffer is not large enough to store all of the hit offsets, a partial list of hit offsets will be stored.

Group
Links
You are here: C++ API > Classes > dtsSearchResults Class > urlEncode Method > dtsSearchResults::urlEncode Method (long, char *, ptrdiff_t)
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.