CLucene - a full-featured, c++ search engine
API Documentation
#include "CLucene/CLConfig.h"#include "CLucene/config/compiler.h"#include <stdio.h>#include <stdlib.h>#include <stddef.h>#include <string.h>#include <unistd.h>#include <sys/stat.h>#include <stdarg.h>#include <math.h>#include <map>#include <list>#include <set>#include <vector>#include <ext/hash_map>#include <ext/hash_set>#include <algorithm>#include <functional>#include "CLucene/config/repl_tchar.h"#include <errno.h>#include <fcntl.h>#include "CLucene/config/repl_wchar.h"#include "CLucene/debug/error.h"#include "CLucene/debug/condition.h"#include "CLucene/debug/mem.h"#include "LuceneThreads.h"#include "CLucene/util/Misc.h"#include "CLucene/util/Equators.h"#include "CLucene/util/VoidList.h"#include "CLucene/util/VoidMap.h"Go to the source code of this file.
Namespaces | |
| namespace | lucene |
todo: jlucene has change from using DocumentFieldList/Enumeration to using a java List. | |
| namespace | lucene::util |
Defines | |
| #define | stringCaseFold cl_tcscasefold |
| #define | stringCaseFoldCmp cl_tcscasefoldcmp |
| #define | _istalnum cl_isalnum |
| #define | _istalpha cl_isletter |
| #define | _istspace cl_isspace |
| #define | _istdigit cl_isdigit |
| #define | _totlower cl_tolower |
| #define | _totupper cl_toupper |
| #define | LUCENE_BLANK_STRING _LUCENE_BLANK_STRING |
| #define | LUCENE_BLANK_ASTRING _LUCENE_BLANK_ASTRING |
| #define | CL_FILELINE |
| #define | CL_FILELINEREF |
| #define | CL_FILELINEREF2 ,NULL,-1 |
| #define | CL_FILELINEPARAM |
| #define | stringDuplicate(x) lucenestrdup(x CL_FILELINE) |
| #define | STRCPY_AtoA(target, src, len) strncpy(target,src,len) |
| #define | STRDUP_AtoA(x) lucenestrdup(x CL_FILELINE) |
| #define | STRDUP_AtoT STRDUP_AtoA |
| #define | STRDUP_TtoA STRDUP_AtoA |
| #define | STRDUP_TtoT STRDUP_AtoA |
| #define | STRDUP_WtoT(x) xxxxxxxxxxxxxxx |
| #define | STRCPY_WtoT(target, src, len) xxxxxxxxxxxxxxx |
| #define | STRCPY_AtoT STRCPY_AtoA |
| #define | STRCPY_TtoA STRCPY_AtoA |
| #define | STRCPY_TtoT STRCPY_AtoA |
| #define | CL_NS_DEF(sub) namespace lucene{ namespace sub{ |
| #define | CL_NS_DEF2(sub, sub2) namespace lucene{ namespace sub{ namespace sub2 { |
| #define | CL_NS_END }} |
| #define | CL_NS_END2 }}} |
| #define | CL_NS_USE(sub) using namespace lucene::sub; |
| #define | CL_NS_USE2(sub, sub2) using namespace lucene::sub::sub2; |
| #define | CL_NS(sub) lucene::sub |
| #define | CL_NS2(sub, sub2) lucene::sub::sub2 |
| #define | CL_NS_STD(func) std::func |
| #define | _T(x) x |
Typedefs | |
| typedef unsigned long | clunichar |
| typedef lucene::util::CLVector < TCHAR * > | lucene::util::StringArray |
| typedef lucene::util::CLVector < TCHAR *, lucene::util::Deletor::tcArray > | lucene::util::StringArrayWithDeletor |
| typedef lucene::util::CLVector < const TCHAR * > | lucene::util::StringArrayConst |
| typedef lucene::util::CLVector < const TCHAR *, lucene::util::Deletor::tcArray > | lucene::util::StringArrayConstWithDeletor |
| typedef lucene::util::CLVector < char * > | lucene::util::AStringArray |
| typedef lucene::util::CLVector < char *, lucene::util::Deletor::acArray > | lucene::util::AStringArrayWithDeletor |
| typedef lucene::util::CLVector < const char * > | lucene::util::AStringArrayConst |
| typedef lucene::util::CLVector < const char *, lucene::util::Deletor::acArray > | lucene::util::AStringArrayConstWithDeletor |
Functions | |
| void | _lucene_shutdown () |
| bool | cl_isletter (clunichar c) |
| bool | cl_isalnum (clunichar c) |
| bool | cl_isdigit (clunichar c) |
| bool | cl_isspace (clunichar c) |
| TCHAR | cl_tolower (TCHAR c) |
| TCHAR | cl_toupper (TCHAR c) |
| int | cl_tcscasefoldcmp (const TCHAR *dst, const TCHAR *src) |
| TCHAR * | cl_tcscasefold (TCHAR *str, int len=-1) |
| size_t | lucene_utf8towc (wchar_t *ret, const char *s, size_t n) |
| size_t | lucene_utf8towcs (wchar_t *, const char *, size_t maxslen) |
| size_t | lucene_wctoutf8 (char *ret, const wchar_t str) |
| size_t | lucene_wcstoutf8 (char *, const wchar_t *, size_t maxslen) |
| size_t | lucene_utf8charlen (const char *p) |
| char * | lucenestrdup (const char *v CL_FILELINEPARAM) |
| void | CLDebugBreak () |
Variables | |
| int | _lucene_counter_break |
| TCHAR * | _LUCENE_BLANK_STRING |
| a blank string... | |
| char * | _LUCENE_BLANK_ASTRING |
| #define _istalnum cl_isalnum |
| #define _istalpha cl_isletter |
| #define _istdigit cl_isdigit |
| #define _istspace cl_isspace |
| #define _T | ( | x | ) | x |
Referenced by lucene::search::Weight::toString(), and lucene::search::ConjunctionScorer::toString().
| #define _totlower cl_tolower |
| #define _totupper cl_toupper |
| #define CL_FILELINE |
| #define CL_FILELINEPARAM |
| #define CL_FILELINEREF |
| #define CL_FILELINEREF2 ,NULL,-1 |
| #define CL_NS | ( | sub | ) | lucene::sub |
Referenced by lucene::search::ScoreDocComparators::Float::sortValue(), lucene::search::ScoreDocComparators::Int32::sortValue(), lucene::search::ScoreDocComparators::String::sortValue(), lucene::search::ScoreDocComparators::IndexOrder::sortValue(), and lucene::search::ScoreDocComparators::Relevance::sortValue().
| #define CL_NS2 | ( | sub, | |||
| sub2 | ) | lucene::sub::sub2 |
| #define CL_NS_DEF | ( | sub | ) | namespace lucene{ namespace sub{ |
| #define CL_NS_DEF2 | ( | sub, | |||
| sub2 | ) | namespace lucene{ namespace sub{ namespace sub2 { |
| #define CL_NS_END }} |
| #define CL_NS_END2 }}} |
| #define CL_NS_STD | ( | func | ) | std::func |
| #define CL_NS_USE | ( | sub | ) | using namespace lucene::sub; |
| #define CL_NS_USE2 | ( | sub, | |||
| sub2 | ) | using namespace lucene::sub::sub2; |
| #define LUCENE_BLANK_ASTRING _LUCENE_BLANK_ASTRING |
| #define LUCENE_BLANK_STRING _LUCENE_BLANK_STRING |
| #define STRCPY_AtoA | ( | target, | |||
| src, | |||||
| len | ) | strncpy(target,src,len) |
| #define STRCPY_AtoT STRCPY_AtoA |
| #define STRCPY_TtoA STRCPY_AtoA |
| #define STRCPY_TtoT STRCPY_AtoA |
| #define STRCPY_WtoT | ( | target, | |||
| src, | |||||
| len | ) | xxxxxxxxxxxxxxx |
| #define STRDUP_AtoA | ( | x | ) | lucenestrdup(x CL_FILELINE) |
Referenced by lucene::store::Directory::list().
| #define STRDUP_AtoT STRDUP_AtoA |
| #define STRDUP_TtoA STRDUP_AtoA |
| #define STRDUP_TtoT STRDUP_AtoA |
Referenced by lucene::search::Weight::toString(), and lucene::search::ConjunctionScorer::toString().
| #define STRDUP_WtoT | ( | x | ) | xxxxxxxxxxxxxxx |
| #define stringCaseFold cl_tcscasefold |
| #define stringCaseFoldCmp cl_tcscasefoldcmp |
| #define stringDuplicate | ( | x | ) | lucenestrdup(x CL_FILELINE) |
| typedef unsigned long clunichar |
| void _lucene_shutdown | ( | ) |
| bool cl_isalnum | ( | clunichar | c | ) |
| bool cl_isdigit | ( | clunichar | c | ) |
| bool cl_isletter | ( | clunichar | c | ) |
| bool cl_isspace | ( | clunichar | c | ) |
| TCHAR* cl_tcscasefold | ( | TCHAR * | str, | |
| int | len = -1 | |||
| ) |
| int cl_tcscasefoldcmp | ( | const TCHAR * | dst, | |
| const TCHAR * | src | |||
| ) |
| TCHAR cl_tolower | ( | TCHAR | c | ) |
| TCHAR cl_toupper | ( | TCHAR | c | ) |
| void CLDebugBreak | ( | ) |
| size_t lucene_utf8charlen | ( | const char * | p | ) |
| size_t lucene_utf8towc | ( | wchar_t * | ret, | |
| const char * | s, | |||
| size_t | n | |||
| ) |
| size_t lucene_utf8towcs | ( | wchar_t * | , | |
| const char * | , | |||
| size_t | maxslen | |||
| ) |
| size_t lucene_wcstoutf8 | ( | char * | , | |
| const wchar_t * | , | |||
| size_t | maxslen | |||
| ) |
| size_t lucene_wctoutf8 | ( | char * | ret, | |
| const wchar_t | str | |||
| ) |
| char* lucenestrdup | ( | const char *v | CL_FILELINEPARAM | ) |
| char* _LUCENE_BLANK_ASTRING |
| TCHAR* _LUCENE_BLANK_STRING |
a blank string...