SWISH-3
view release on metacpan or search on metacpan
libswish3.h view on Meta::CPAN
typedef struct swish_3 swish_3;
typedef struct swish_StringList swish_StringList;
typedef struct swish_Config swish_Config;
typedef struct swish_ConfigFlags swish_ConfigFlags;
typedef struct swish_ConfigValue swish_ConfigValue;
typedef struct swish_DocInfo swish_DocInfo;
typedef struct swish_MetaStackElement swish_MetaStackElement;
typedef struct swish_MetaStackElement *swish_MetaStackElementPtr;
typedef struct swish_MetaStack swish_MetaStack;
typedef struct swish_MetaName swish_MetaName;
typedef struct swish_Property swish_Property;
typedef struct swish_Token swish_Token;
typedef struct swish_TokenList swish_TokenList;
typedef struct swish_TokenIterator swish_TokenIterator;
typedef struct swish_ParserData swish_ParserData;
typedef struct swish_Tag swish_Tag;
typedef struct swish_TagStack swish_TagStack;
typedef struct swish_Analyzer swish_Analyzer;
typedef struct swish_Parser swish_Parser;
typedef struct swish_NamedBuffer swish_NamedBuffer;
/*
=head2 Data Structures
*/
struct swish_3
{
int ref_cnt;
void *stash;
swish_Config *config;
swish_Analyzer *analyzer;
swish_Parser *parser;
};
struct swish_StringList
{
unsigned int n;
unsigned int max;
xmlChar** word;
};
struct swish_Config
{
int ref_cnt;
void *stash; /* for bindings */
xmlHashTablePtr misc;
xmlHashTablePtr properties;
xmlHashTablePtr metanames;
xmlHashTablePtr tag_aliases;
xmlHashTablePtr parsers;
xmlHashTablePtr mimes;
xmlHashTablePtr index;
xmlHashTablePtr stringlists;
struct swish_ConfigFlags *flags; /* shortcuts for parsing */
};
struct swish_ConfigFlags
{
boolean tokenize;
boolean cascade_meta_context;
boolean ignore_xmlns;
boolean follow_xinclude;
int undef_metas;
int undef_attrs;
int max_meta_id;
int max_prop_id;
xmlHashTablePtr meta_ids;
xmlHashTablePtr prop_ids;
//xmlHashTablePtr contexts;
};
struct swish_NamedBuffer
{
int ref_cnt; /* for bindings */
void *stash; /* for bindings */
xmlHashTablePtr hash; /* the meat */
};
struct swish_DocInfo
{
time_t mtime;
off_t size;
xmlChar * mime;
xmlChar * encoding;
xmlChar * uri;
unsigned int nwords;
xmlChar * ext;
xmlChar * parser;
xmlChar * action;
boolean is_gzipped;
int ref_cnt;
};
struct swish_MetaName
{
int ref_cnt;
int id;
xmlChar *name;
int bias;
xmlChar *alias_for;
};
struct swish_Property
{
int ref_cnt;
int id;
xmlChar *name;
boolean ignore_case;
int type;
boolean verbatim;
xmlChar *alias_for;
unsigned int max;
boolean sort;
boolean presort;
unsigned int sort_length;
};
struct swish_Token
{
unsigned int pos; // this token's position in document
( run in 1.122 second using v1.01-cache-2.11-cpan-5837b0d9d2c )