lq-text: LQT_WriteWordAndWID
File:
liblqtext/wordinfo.c
Category:
Database/Update
Database/Words
See Also:
LQT_WIDToWord
LQT_WordToWID
LQT_PutWordInfoIntoIndex
All Categories:
Overview
Database/Database
Database/Defaults
Database/Documents
Database/Dynamic Hashing
Database/Files
Database/Physical
Database/Retrieval
Database/Update
Database/Words
Error Handling
Input
Language/Stemming
Language/Stop List
Memory
Other/Terminal
Output
Retrieval/Matching
Retrieval/Phrases
Tracing
Utilities/Files
Utilities/Glue
Utilities/Memory
Utilities/Name Space
Utilities/Numeric Range
Utilities/Strings
Utilities/System
API t_WID
LQT_WriteWordAndWID
(db, Word, Length, WID) t_LQTEXT_Database *db; char *Word; int Length; t_WID WID;
Purpose
Saves the WID --> Word mapping in the wordlist database.
Returns
the given WID.
Errors
Fatal error if the database can't be opened, or if the word couldn't be stored.
See Also:
LQT_WIDToWord
LQT_WordToWID
LQT_PutWordInfoIntoIndex
Notes
The reverse map, Word --> WID, is performed using
LQT_WIDToWord
, and uses the copy of the word stored in the widindex block header.