Top   Module   Use   Manual   Index 
 EXPORTING SERVICES | METHODS' SUMMARY | METHODS' DETAILS 

com :: sun :: star :: util ::

interface XTextSearch

Base Interface
com::sun::star::uno::XInterface



Known Services which Export this Interface

com::sun::star::util::TextSearch search a string with a defined algorithm in another string. It is able to search forward or backward in the string

Methods' Summary

setOptions set the options for the forward or backward search.
searchForward search forward in the searchStr, starts at startPos and ends by endpos. The result is returned in the SearchResult.
searchBackward search backward in the searchStr, starts at startPos and ends by endpos. The endpos must be lower then the startpos, because the function searches backward! The result is returned in the SearchResult.

Methods' Details

setOptions
 
void
setOptions(
[ in ] com::sun::star::util::SearchOptions options );

Description
set the options for the forward or backward search.
searchForward
 
com::sun::star::util::SearchResult
searchForward(
[ in ] string searchStr,
[ in ] long startPos,
[ in ] long endPos );

Description
search forward in the searchStr, starts at startPos and ends by endpos. The result is returned in the SearchResult.
searchBackward
 
com::sun::star::util::SearchResult
searchBackward(
[ in ] string searchStr,
[ in ] long startPos,
[ in ] long endPos );

Description
search backward in the searchStr, starts at startPos and ends by endpos. The endpos must be lower then the startpos, because the function searches backward! The result is returned in the SearchResult.

Top of Page