Pigweed
 
Loading...
Searching...
No Matches
pw::tokenizer::TokenDatabase::Entry Struct Reference

An entry in the token database. More...

#include <token_database.h>

Public Attributes

uint32_t token
 The token that represents this string.
 
uint32_t date_removed
 
const char * string
 The null-terminated string represented by this token.
 

Detailed Description

An entry in the token database.

Member Data Documentation

◆ date_removed

uint32_t pw::tokenizer::TokenDatabase::Entry::date_removed

The date the token and string was removed from the database, or kDateRemovedNever if it was never removed. Dates are encoded such that natural integer sorting sorts from oldest to newest dates. The day is stored an an 8-bit day, 8-bit month, and 16-bit year, packed into a little-endian uint32_t.


The documentation for this struct was generated from the following file: