ze-filter  (ze-filter-0.8.0-develop-180218)
ze-buffer.c File Reference
#include <ze-sys.h>
#include "libze.h"

Go to the source code of this file.

Functions

long bufspn (char *buf, long sz, char *accept)
 
long bufcspn (char *buf, long sz, char *reject)
 
size_t buf_clean_rc (char *s, size_t sz)
 
int buf_get_line (char *dst, long szdst, char *org, long szorg)
 
char * read_text_file (char *fname, size_t *sz)
 
char * buf_get_next_line (char *out, char *in, size_t szout)
 
bool text_word_length (char *buf, kstats_T *st, size_t size)
 
long text_buf_histogram (char *buf, size_t size, long *prob)
 

Function Documentation

◆ buf_clean_rc()

size_t buf_clean_rc ( char *  s,
size_t  sz 
)

Definition at line 75 of file ze-buffer.c.

◆ buf_get_line()

int buf_get_line ( char *  dst,
long  szdst,
char *  org,
long  szorg 
)

Definition at line 98 of file ze-buffer.c.

◆ buf_get_next_line()

char* buf_get_next_line ( char *  out,
char *  in,
size_t  szout 
)

Definition at line 230 of file ze-buffer.c.

◆ bufcspn()

long bufcspn ( char *  buf,
long  sz,
char *  reject 
)

Definition at line 55 of file ze-buffer.c.

◆ bufspn()

long bufspn ( char *  buf,
long  sz,
char *  accept 
)

Definition at line 34 of file ze-buffer.c.

◆ read_text_file()

char* read_text_file ( char *  fname,
size_t *  sz 
)

Definition at line 183 of file ze-buffer.c.

◆ text_buf_histogram()

long text_buf_histogram ( char *  buf,
size_t  size,
long *  prob 
)

Definition at line 310 of file ze-buffer.c.

◆ text_word_length()

bool text_word_length ( char *  buf,
kstats_T st,
size_t  size 
)

Definition at line 266 of file ze-buffer.c.