the value is 0. If the buffer is not already fully scanned, the value is -1.
SearchContext.occurrencesCount
int occurrencesCount() @propertyGet occurrencesCount property.
Returns
The total number of search occurrences. If the search is disabled,
int occurrencesCount() @propertyGet occurrencesCount property.
the value is 0. If the buffer is not already fully scanned, the value is -1.