lq-text: LQT_UpdateWIDMatchCount

API void LQT_UpdateWIDMatchCount (db, WID, AddedThese) t_LQTEXT_Database *db; t_WID WID; unsigned long AddedThese;

Purpose

Revises the count of the number of occurrences of the given word held in the WIDindex file. It is the caller's responsibility to ensure that this number is the same as the number of matches that are stored with LQT_Write­Word­Places before the next call to LQT_Get­Word­Places. In particular, reducing the number of occurrences with this call will not cause word places to be deleted; a fatal (E_BUG) error will generally be produced on trying to read back a word with an inconsistent Match Count.

Errors

It's a fatal error (E_BUG) if the WID isn't in the index.