FirteX-高性能全文索引和检索平台API Documentation |
#include <DateTimeAnalyzer.h>
继承图,类firtex::analyzer::CDateTimeAnalyzer

公有成员 | |
| CDateTimeAnalyzer (void) | |
| virtual | ~CDateTimeAnalyzer (void) |
| TokenType | getTokenType () |
| CTokens * | nextTokens (CReader *reader, CTokens *pInput=NULL) |
| void | close () |
静态公有成员 | |
| int64_t | parse (const tchar *str) |
静态公有属性 | |
| const string | category |
| const string | identifier |
静态保护成员 | |
| bool | checkDate (const char *pszDate, DateTime &dt) |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
关闭分析器,释放资源,子类重载后需显式调用 |
|
|
返回Analyzer可以处理的Token类型
|
|
||||||||||||
|
取一批分析完毕的Token
|
|
|
解析"1999-3-3 4:43:44", "1999/3/3 4:43:44","1999年3月3日 4点43分44秒", "1999年3月3日 4点43分","1999年3月3日 4点","1999年3月3日",...等形式的 时间日期字符串,并转换成time64_t
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex