privacore-open-source-searc.../tokenizer/tokenizer5.cpp
2018-03-06 11:38:00 +01:00

9 lines
224 B
C++

#include"tokenizer.h"
#include "hash.h"
void calculate_tokens_hashes(TokenizerResult *tr) {
for(auto &token : tr->tokens)
if(token.is_alfanum)
token.token_hash = hash64Lower_utf8(token.token_start,token.token_len);
}