Logo Search packages:      
Sourcecode: icu version File versions  Download package

int32_t SearchIterator::getMatchedLength ( void   )  const [inherited]

Returns the length of text in the string which matches the search pattern. This call returns a valid result only after a successful call to first, next, previous, or last. Just after construction, or after a searching method returns USEARCH_DONE, this method will return 0.

The length of the match in the target text, or 0 if there is no match currently.
See also:



last ICU 2.0

Definition at line 105 of file search.cpp.

References SearchIterator::m_search_.

    return m_search_->matchedLength;

Generated by  Doxygen 1.6.0   Back to index