Token* t = corpus.get(token->mWord.get()); if (!t) { t = new Token(token->mWord.get()); } if (t) { t->mCount += token->mCount; }
corpus.add(token->mWord.get(), token->mCount);
static void rememberTokens(Tokenizer& corpus, Token* tokens[], PRUint32 count){    for (PRUint32 i = 0; i < count; ++i) {        Token* token = tokens[i];        Token* t = corpus.get(token->mWord.get());        if (!t) {            t = new Token(token->mWord.get());        }        if (t) {            t->mCount += token->mCount;        }    }}