Method

IdeSearchReduceraccepts

Declaration

gboolean
ide_search_reducer_accepts (
  IdeSearchReducer* reducer,
  gfloat score
)

Description

This helper allows you to check if a result with score would be allowed into the result set, or if the score is too low. This helps in situations where you want to avoid inflating an IdeSearchResult unless necessary.

Parameters

score

Type: gfloat

A score for the result.

Return value

Type: gboolean

TRUE if there is space for a result with a score of score.