mirror of
https://github.com/allankoechke/flashtext-cpp.git
synced 2026-11-30 10:19:27 +00:00
30 lines
490 B
C++
30 lines
490 B
C++
//
|
|
// Created by lalanke on 26/04/2021.
|
|
//
|
|
|
|
#include <iostream>
|
|
#include <map>
|
|
#include <string>
|
|
#include "../src/flashtext.h"
|
|
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
|
|
|
|
int main()
|
|
{
|
|
KeywordProcessor key; // = KeywordProcessor(true);
|
|
// cout << "Trie Size: " << key.trieSize() << endl;
|
|
|
|
// Test toLowerCase function
|
|
// cout << key.stringToLower("XaXSVXGSJGJVgsgxgs") << endl;
|
|
|
|
// Test Contains
|
|
// cout << "Contains: " << key.contains("Allan") << endl;
|
|
|
|
|
|
return 0;
|
|
}
|
|
|