Changeset 1906
- Timestamp:
- 02/07/07 14:25:16 (2 years ago)
- Files:
-
- swish-e/trunk/pod/CHANGES.pod (modified) (1 diff)
- swish-e/trunk/pod/SWISH-LIBRARY.pod (modified) (1 diff)
- swish-e/trunk/src/search.c (modified) (2 diffs)
- swish-e/trunk/src/swish-e.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/trunk/pod/CHANGES.pod
r1903 r1906 15 15 Fixed a leak if a limit was set and then reset but not prepared. 16 16 Patch provided by Antony Dovgal. 17 18 =item New API functions added 19 20 Added SwishGetStructure() and SwishGetPhraseDelimiter() functions which return 21 relevant properties of the search object. 22 Patch provided by Antony Dovgal. 23 17 24 18 25 swish-e/trunk/pod/SWISH-LIBRARY.pod
r1613 r1906 159 159 object until change. 160 160 161 =item int SwishGetStructure( SW_SEARCH srch ); 162 163 Returns the "structure" flag of the search object passed or 0 if the search 164 object is NULL. 165 166 =item void SwishPhraseDelimiter( SW_SEARCH srch, char delimiter ); 167 168 Sets the phrase delimiter character. The default is double-quotes. 169 170 =item char SwishGetPhraseDelimiter( SW_SEARCH srch ); 171 172 Returns the phrase delimiter character used in the search object or 0 if the 173 search object is NULL. 174 175 176 161 177 =item void SwishSetStructure( SW_SEARCH srch, int structure ); 162 178 swish-e/trunk/src/search.c
r1840 r1906 291 291 } 292 292 293 int SwishGetStructure( SEARCH_OBJECT *srch ) 294 { 295 return srch ? srch->structure : 0; 296 } 293 297 294 298 void SwishPhraseDelimiter( SEARCH_OBJECT *srch, char delimiter ) … … 298 302 } 299 303 304 305 char SwishGetPhraseDelimiter(SEARCH_OBJECT *srch) 306 { 307 return srch ? srch->PhraseDelimiter : 0; 308 } 300 309 301 310 swish-e/trunk/src/swish-e.h
r1775 r1906 130 130 131 131 void SwishSetStructure( SW_SEARCH srch, int structure ); 132 int SwishGetStructure( SW_SEARCH srch); 132 133 void SwishPhraseDelimiter( SW_SEARCH srch, char delimiter ); 134 char SwishGetPhraseDelimiter( SW_SEARCH srch ); 133 135 void SwishSetSort( SW_SEARCH srch, char *sort ); 134 136 void SwishSetQuery( SW_SEARCH srch, char *query );
