CWB
Data Structures | Typedefs | Enumerations | Functions

concordance.h File Reference

#include "../cl/corpus.h"
#include "../cl/class-mapping.h"
#include "context_descriptor.h"
#include "print-modes.h"

Data Structures

Typedefs

Enumerations

Functions


Typedef Documentation

typedef struct _ConcLineField ConcLineField

Enumeration Type Documentation

Enumerator:
ConcLineHorizontal 
ConcLineVertical 

Function Documentation

void add_to_string ( char **  s,
int *  spos,
int *  ssize,
char *  suffix 
)

References cl_malloc(), cl_realloc(), and SRESIZE.

int append ( char *  s,
char *  suffix,
int *  sp,
int  max_sp 
)

Appends one string to another whicle keeping track of the overall length.

Parameters:
sThe string to modify.
suffixThe string you want to append to s.
spIndex into s indicating the end of its current content. For example, if the string contains "blob", sp would be 4. sp is modified by this function to point to the end of the content after appending has been complete.
max_spSize of the s array (ie, no character after s[max_sp-1] will be written to).
Returns:
The number of characters copied.

Referenced by compose_kwic_line(), get_field_separators(), get_position_values(), and get_print_attribute_values().

char* compose_kwic_line ( Corpus *  corpus,
int  start,
int  end,
ContextDescriptor *  context,
int *  length,
int *  string_match_begin,
int *  string_match_end,
char *  left_marker,
char *  right_marker,
int *  position_list,
int  nr_positions,
int *  returned_positions,
ConcLineField *  fields,
int  nr_fields,
ConcLineLayout  orientation,
PrintDescriptionRecord *  pdr,
int  nr_mappings,
Mapping *  mappings 
)
int get_position_values ( ContextDescriptor *  cd,
int  position,
char *  s,
int *  sp,
int  max_sp,
int  add_position_number,
ConcLineLayout  orientation,
PrintDescriptionRecord *  pdr,
int  nr_mappings,
Mapping *  mappings 
)
int get_print_attribute_values ( ContextDescriptor *  cd,
int  corpus_position,
char *  s,
int *  sp,
int  max_sp,
int  add_position_number,
PrintDescriptionRecord *  pdr 
)