摘要 |
<p>A method for forming a file of messages in a computer includes the step of first forming a first file portion as a message word table having entries corresponding to the message words, said entries ordered in the table by their frequency of occurrence in the messages. Then, a second portion as a message token string table containing a token string for each message is formed, where each token string includes several tokens, each representing a word or variable in the message. The tokens are located in the string according to the location of the corresponding words in the message. Each token has a value that represents the location of its corresponding word in the message word table. The third step includes forming a third file portion as a message look-up table that contains a unique identifier for each message and a corresponding pointer that indicates the address of a token in the token string table. In addition, the messages are retrieved by first locating the identifier in a message look-up table portion of a message file, and then retrieving a pointer that corresponds to the identifier. The pointer is used to locate the first token of a token string that represents the words and variables of a message. Each of the tokens is then used to access the message word table or is decoded to represent the variables, the words and variables are assembled in a buffer in the order of occurrence in the message token string to form an assembled or formatted message.</p> |