citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
ft_wordbreaker.c File Reference
#include "../../sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <sys/wait.h>
#include <ctype.h>
#include <string.h>
#include <limits.h>
#include <libcitadel.h>
#include "../../citadel.h"
#include "../../server.h"
#include "../../sysdep_decls.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../database.h"
#include "../../msgbase.h"
#include "../../control.h"
#include "ft_wordbreaker.h"
#include "crc16.h"
#include "../../ctdl_module.h"
Include dependency graph for ft_wordbreaker.c:

Go to the source code of this file.

Macros

#define NUM_NOISE   (sizeof(noise_words) / sizeof(char *))
 

Functions

int intcmp (const void *rec1, const void *rec2)
 
void wordbreaker (const char *text, int *num_tokens, int **tokens)
 

Variables

static char * noise_words []
 

Macro Definition Documentation

◆ NUM_NOISE

#define NUM_NOISE   (sizeof(noise_words) / sizeof(char *))

Definition at line 111 of file ft_wordbreaker.c.

Function Documentation

◆ intcmp()

int intcmp ( const void *  rec1,
const void *  rec2 
)

Definition at line 117 of file ft_wordbreaker.c.

Referenced by wordbreaker().

◆ wordbreaker()

void wordbreaker ( const char *  text,
int *  num_tokens,
int **  tokens 
)

Definition at line 129 of file ft_wordbreaker.c.

References CalcCRC16Bytes(), intcmp(), noise_words, NUM_NOISE, WB_MAX, and WB_MIN.

Referenced by ft_index_message(), and ft_search().

Variable Documentation

◆ noise_words

char* noise_words[]
static

Definition at line 48 of file ft_wordbreaker.c.

Referenced by wordbreaker().